locked
Calling SSIS package in Stored Procedure... RRS feed

  • Question

  • I have a SSIS package, and i want to call this (run this SSIS package) from Stored Procedure in Sql Server 2008.

    Can anyone  please explain to me as to how can i call SSIS package from SP?

     

    Thanks!


    Rahman
    Monday, December 12, 2011 5:40 PM

Answers

  • Ted Kruger explains how this can be done in his blog post

     

    Run SSIS Package from Stored Procedure

     


    For every expert, there is an equal and opposite expert. - Becker's Law


    My blog

    • Edited by Naomi N Monday, December 12, 2011 11:13 PM
    • Marked as answer by Peja Tao Monday, December 26, 2011 8:39 AM
    Monday, December 12, 2011 11:13 PM
  • One way to do this is to create a job (to run SSIS Package) and use sp_start_job  within your stored procedure to run SSIS Package.

    Make sure your package location be SQL Server, and keep Protection Level Encrypt sensitive data with user key (connection information is encrypted in the SQL and not in user profiles.) 

     


    Sharjeel Ashraf
    • Proposed as answer by Iric Wen Wednesday, December 14, 2011 2:22 AM
    • Marked as answer by Peja Tao Monday, December 26, 2011 8:39 AM
    • Edited by SA_Green Saturday, February 25, 2012 4:41 AM
    Monday, December 12, 2011 6:01 PM

All replies

  • One way to do this is to create a job (to run SSIS Package) and use sp_start_job  within your stored procedure to run SSIS Package.

    Make sure your package location be SQL Server, and keep Protection Level Encrypt sensitive data with user key (connection information is encrypted in the SQL and not in user profiles.) 

     


    Sharjeel Ashraf
    • Proposed as answer by Iric Wen Wednesday, December 14, 2011 2:22 AM
    • Marked as answer by Peja Tao Monday, December 26, 2011 8:39 AM
    • Edited by SA_Green Saturday, February 25, 2012 4:41 AM
    Monday, December 12, 2011 6:01 PM
  • Thanks for the reply.

    Appreciate it.


    Rahman
    Monday, December 12, 2011 10:14 PM
  • Ted Kruger explains how this can be done in his blog post

     

    Run SSIS Package from Stored Procedure

     


    For every expert, there is an equal and opposite expert. - Becker's Law


    My blog

    • Edited by Naomi N Monday, December 12, 2011 11:13 PM
    • Marked as answer by Peja Tao Monday, December 26, 2011 8:39 AM
    Monday, December 12, 2011 11:13 PM
  • I have an SSIS package sensitive encrypted with password deployed and present in Catalogs and I want to run it by means of a stored procedure. How can I pass the password?

    Many thanks

    Carlo

    Tuesday, October 14, 2014 2:04 PM