Solved

SSIS - Using Input Paramter for OLE DB Source

Posted on 2009-04-02
3
724 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
LTrim & Double Space Correction 5 42
SSMS Opening Mode 9 20
Help With SQL Query 9 33
SQL Recursion 6 20
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

830 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