?
Solved

SSIS - Using Input Paramter for OLE DB Source

Posted on 2009-04-02
3
Medium Priority
?
740 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
PedroCGD earned 2000 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
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.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Suggested Courses

777 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