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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling stored procedure in SSIS

Status
Not open for further replies.

hedgracer

Programmer
Mar 21, 2001
186
US
How do I call a stored procedure in SSIS? I have googled this to death and have yet to find something I can use. Any help is appreciated (including a link that I can go to for reading up on this procedure). Thanks.

Dave Christman
 
You need to use an Execute SQL Task. In the SQLStatement section you can add the code to execute the stored procedure.

If you need to pass parameters, use the ? syntax and specify the parameters in the "Parameter Mapping" section.
 
Another option is to use expressions in the execute sql task editor. You could create an expression for the SqlStatementSource property. A simple example:

"exec usp_SomeProc @somevar = '"+ @[User::strSomeVar]+"'"

Thanks,
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top