INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

RE: Execute Stored Procedure with parameters

RE: Execute Stored Procedure with parameters

(OP)
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!

RE: RE: Execute Stored Procedure with parameters

yeah.

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

----------------------------------------
www.fountain.me.uk

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
----------------------------------------

RE: RE: Execute Stored Procedure with parameters

(OP)
Thanks for your quick response! The stored procedure just needs to run.

Thanks again for your help!

RE: RE: Execute Stored Procedure with parameters

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?

----------------------------------------
www.fountain.me.uk

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
----------------------------------------

RE: RE: Execute Stored Procedure with parameters

(OP)
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.

RE: RE: Execute Stored Procedure with parameters

so you want to manually enter the date? Is it not something you can calculate?

----------------------------------------
www.fountain.me.uk

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
----------------------------------------

RE: RE: Execute Stored Procedure with parameters

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: How to get the best answers before you ask a question

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close