Solved

SSIS - Using Input Paramter for OLE DB Source

Posted on 2009-04-02
3
713 Views
Last Modified: 2013-11-10
Hello Experts.

I have an SSIS Package that is going to select data with an OLE DB Source, execute a bunch of stored procs via an OLE DB Command for each row in the Source record.

The original select statement in the OLE DB Source has a hard-coded paramter (@JobID). I want to make the SSIS package to either look in a text file or even prompt me for the JobID. Eventually I will be launching this from a web page, so I guess I need to know how to pass it down that way too.

Any and all comments are welcome.

0
Comment
Question by:WaldaInc
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
PedroCGD earned 500 total points
ID: 24058346
To call  a package from an asp website check my blog... there is there an example.
Now, you need to create a SSIS variable to store the parameter... and inside dataflow, you need to add the SSIS parameter to the pipeline (using for example a derived column) and inside OLEDB Command just put the statment EXEC MyStoredProcedure ? and in the mappings tab set the ? to the SSIS Variable.

Helped?
regards,
Pedro

www.pedrocgd.blogspot.com
0
 

Author Comment

by:WaldaInc
ID: 24061682
Thanks Pedro.

Yes, I will read your blog and the SSIS variable sounds like the way to go.

Give me a few days to familarize myself with these items (SSIS variable and your blog, then I'll award you the points.

Thanks again.

0
 
LVL 22

Expert Comment

by:PedroCGD
ID: 24061701
ok my friend!
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now