Running an SSIS package from a tSQLt test
Is it possible to run an SSIS package from within a test? This code runs fine in a normal query window, until I place it into a SQL Test script...
DECLARE @execution_id BIGINT EXEC [SSISDB].[catalog].[create_execution] @package_name=N'MyPackage.dtsx', @execution_id=@execution_id OUTPUT, @folder_name=N'MyFolder', @project_name=N'MyProject', @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].[set_execution_parameter_value] @execution_id, @object_type = 50, @parameter_name = N'SYNCHRONIZED', @parameter_value = 1 DECLARE @var1 bit = 0 EXEC [SSISDB].[catalog].[set_execution_parameter_value] @execution_id, @object_type=50, @parameter_name=N'DUMP_ON_ERROR', parameter_value=@var1 EXEC [SSISDB].[catalog].[start_execution] @execution_id
Comments
Any help or suggestions would be welcome. Anyone out there able to execute MS SQL SERVER 2012 SSIS packages from within SQL Test? :?
https://groups.google.com/forum/#!forum/tsqlt
Many thanks,
David Atkinson
Redgate
Product Manager
Redgate Software