Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stored Procedure to Initiate SSIS Package?? 1

Status
Not open for further replies.

sconti11

Technical User
Jan 31, 2011
95
US
I have just been asked by my business if we can initiate my SSIS package ON DEMAND. Basically be able to update the records (which is done within the ETL of the SSIS package) whenever a user wants to.

Without getting into the logistics of this, I am trying to figure out how to create a simple Stored Procedure that will initiate the SSIS package. It currently is on a schedule within the SQL Server Agent. I have read that I could use sp_start_job, but I am not sure how to construct this properly??

Any assistance on writing the Stored Procedure would be helpful. Also there are no parameters being passed at this time to the SSIS package.
 
So that is all I have to write within the Stored Procedure Code?

Seems too simple....but again I am new to writing these.
 
I figured it out! the sp_start_job IS the stored procedure!!!

Awesome....thanks alot!

 
You'll have to make sure that the user has the proper permissions as well.
 
RiverGuy,

I am glad you brought that permissions up, because it is now an issue. We are trying to initiate the sp_start_job procedure from Lotus Notes using Lotus Script, and we are getting the permissions error.

Not sure exactly how to get that user the appropriate permissions, because when I sign into SQL Mamnagement Studio using his credentials I am able to execute that stored procedure. Would you mind assisting me on this permission piece?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top