Execute SQL Server SSIS Package From Stored Procedure

前端 未结 3 546
慢半拍i
慢半拍i 2021-01-12 05:48

I have a SSIS package that is stored in a SQL Server 2005 DB. I am trying to execute this package from a stored procedure on the same server. Is there a better way than

3条回答
  •  醉酒成梦
    2021-01-12 06:02

    Since 2012, MSSQL has an SSIS Catalog, where you can park your packages there. You can then execute a package with parameters. This way we can avoid xp_cmdshell to call dtexec, or sp_start_job without parameters. Key SPs: create_execution, set_execution_parameter_value, and start_execution.

    From MSDN:

    To run a package on the server using SQL Server Management Studio

    Deploy and Execute SSIS Packages using Stored Procedures

提交回复
热议问题