running the [SSISDB].[catalog].[create_execution] stored procedure in a batch ( from a cursor or a loop with furnished parameters for the below)
does not wait for the package completion after starting the execution id before starting the next execution id. I would like to complete each package execution id and only then start the new execution id. can you provide a solution?
Thank you,
"Declare @execution_id bigint
EXEC [SSISDB].[catalog].[create_execution] @package_name= @PackageNameParam, @execution_id=@execution_id OUTPUT,
@folder_name = @FolderNameParam, @project_name= @ProjectNameParam, @use32bitruntime=False, @reference_id=@referenceID
Select @execution_id
DECLARE @var0 sql_variant = convert (nvarchar,@ParameterVal)
EXEC [SSISDB].[catalog].[set_execution_parameter_value] @execution_id, @object_type=30, @parameter_name=@ParameterName, @parameter_value=@var0
DECLARE @var1 smallint = 1
EXEC [SSISDB].[catalog].[set_execution_parameter_value] @execution_id, @object_type=50, @parameter_name=N'LOGGING_LEVEL', @parameter_value=@var1
EXEC [SSISDB].[catalog].[start_execution] @execution_id"