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

RE: Execute Stored Procedure with parameters

Status
Not open for further replies.

allyne

MIS
Feb 9, 2001
410
US
Hi Everyone,

I need to create an SSIS package in SQL 2008 where I need to execute a stored procedure with a date range parameter. Is this possible? Any help would greatly be appreciated!

Thanks for all your help!
 
yeah.

Does the stored proc need to return data? or just be run?

----------------------------------------

Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Bernard Baruch

Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra
----------------------------------------
 
Thanks for your quick response! The stored procedure just needs to run.

Thanks again for your help!
 
Ok. Well then you just need to use the execute SQL task and pop the execute statement in there with parameters.

I just realised something..... you didnt say.... whats in the parameters? Where are the parameters coming from?

----------------------------------------

Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Bernard Baruch

Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra
----------------------------------------
 
The paramaters are date ranges. I'm hoping to be able to enter the Begin Date and End Date and it works it's magic and FTPs the file to an outside source.
 
so you want to manually enter the date? Is it not something you can calculate?

----------------------------------------

Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind - Bernard Baruch

Computer Science is no more about computers than astronomy is about telescopes - EW Dijkstra
----------------------------------------
 
If you want to enter the dates, you need to set the dates up as parameters and reference the parameters when calling the stored proc

You can then execute the package and pass the parameter values at runtime....or you can make it easy on yourself and get teh date values from another file or database table.....

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top