Execute SQL Server SSIS Package From Stored Procedure

前端 未结 3 547
慢半拍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:01

    I recommend using Agent instead:

    1. Create Agent proxy account for the account that will run the job
    2. Create Agent job that runs this package
    3. Make it use the proxy account created in #1
    4. Test the job
    5. In SQL code, use sp_start_job to start this job

    The downside is that you can't easily pass the parameters from SQL to the package this way.

提交回复
热议问题