部署SSIS
USE [SSISDB]
GO
DECLARE @ProjectBinary AS VARBINARY(MAX)
DECLARE @operation_id AS BIGINT
SET @ProjectBinary =
(
SELECT * FROM OPENROWSET
(
BULK 'D:\SSIS\FirstDemo\FirstDemo\bin\Development\FirstDemo.ispac',-- SSIS部署包的路径
SINGLE_BLOB
) AS BinaryData
)
EXEC [catalog].[deploy_project]
@folder_name = 'FirstDemo',-- 在SQL Server中Intergration Services目录\SSISDB中的名称
@project_name = 'FirstDemo',
@Project_Stream = @ProjectBinary,
@operation_id = @operation_id OUT
GO