Skip to content

Instantly share code, notes, and snippets.

@tdmitch
Created July 3, 2020 04:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdmitch/3bd6947082d9408bc0f4f53f712eb13f to your computer and use it in GitHub Desktop.
Save tdmitch/3bd6947082d9408bc0f4f53f712eb13f to your computer and use it in GitHub Desktop.
USE SSISDB;
GO
DECLARE @execution_id BIGINT;
EXEC [SSISDB].[catalog].[create_execution]
@package_name = N'DEMO SFTP List.dtsx'
, @execution_id = @execution_id OUTPUT
, @folder_name = N'SSIS Parameters'
, @project_name = N'SSIS Parameters'
, @use32bitruntime = False
, @reference_id = NULL
, @runinscaleout = False;
EXEC [catalog].[set_execution_parameter_value]
@execution_id
, @object_type = 20
, @parameter_name = N'ppPassword'
, @parameter_value = N'DontReadMyPassword';
EXEC [SSISDB].[catalog].[set_execution_parameter_value]
@execution_id
, @object_type = 20
, @parameter_name = N'ppUserName'
, @parameter_value = N'foo';
/*
Other parameters here
*/
EXEC [SSISDB].[catalog].[start_execution] @execution_id;
GO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment