USE [OPWBI]
GO
/****** Object: StoredProcedure [dbo].[sp_app_SSIS_APP_Data_Run] Script Date: 11/5/2014 7:59:35 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: Mike Gritton
-- Create date: 11/5/2014
-- Description: This runs the SSIS APP Data package, used for remote processes
-- =============================================
ALTER PROCEDURE [dbo].[sp_app_SSIS_APP_Data_Run]
AS
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
Declare @execution_id bigint
EXEC [SSISDB].[catalog].[create_execution] @package_name=N'SSIS APP Data.dtsx', @execution_id=@execution_id OUTPUT, @folder_name=N'APP_Data', @project_name=N'SSIS APP Data', @use32bitruntime=False, @reference_id=Null
Select @execution_id
DECLARE @var0 smallint = 1
EXEC [SSISDB].[catalog].[set_execution_parameter_value] @execution_id, @object_type=50, @parameter_name=N'LOGGING_LEVEL', @parameter_value=@var0
EXEC [SSISDB].[catalog].[start_execution] @execution_id
END