Solved

dynamic ssis

Posted on 2011-09-26
6
294 Views
Last Modified: 2012-05-12
I need to build a SSIS package that will run different queries based on user input from a stored proc.. The proc is called prPriceList and uses the variable @PriceListName.. If someone calls the proc and puts through the name WholeSale then an SSIS package wil run and grab the results of that stored proc if someone puts through Retail than the SSIS package will run grab those results and output an Excel file.. What is the best way to do this? We use VB 2008 here as well as SQL Server 2008 and Visual Studio 2008
0
Comment
Question by:cheryl9063
6 Comments
 
LVL 4

Expert Comment

by:anandarajpandian
ID: 36707560
In visual studio 2008 and select new project under intergration service.and In control flow task select Execute sql task and select your procdeure and pass input parameter.
if you have queries,let me know.

regards
anand
0
 
LVL 21

Expert Comment

by:Alpesh Patel
ID: 36707738
in SSIS Create one variable and pass value to this outside the package.

Get one SQL Script task and create SQL Statement usign expression in that use variable to append the filter.

0
 
LVL 1

Author Comment

by:cheryl9063
ID: 36708550
How do you pass a variable to SSIS and get it to run.. This is what I dont understand..I know about the ? mark thing in a query.. But my boss wants me to give him a stored proc that he can use in a VB app or something and then make the SSIS package run from that I guess... I mean how do people normally do this dynamically? If for example the user passes in green the SSIS runs one way, if the user passes in red the SSIS package runs another.. IMPORTANT.. My question is how do you get the variable to SSIS? NOT how do you except an input variable FROM outside..
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 4

Expert Comment

by:anandarajpandian
ID: 36709944
You can  use the script task to get variable values .
And using precendence constraint to check values.

regards
anandaraj
0
 
LVL 1

Author Comment

by:cheryl9063
ID: 36905033
I dont know how to use a script task.. Can you post an example?
0
 
LVL 21

Accepted Solution

by:
huslayer earned 500 total points
ID: 36906871
Cheryl,

How would your users run that?
What kind of access you'll give them?
How many different paths the package should go, only 2 as you described above?

The best way of you ask me, and the neat way is to give them a SSRS report, you could control the access easily, nice graphical interface for them to enter the paramters, then it'll call the SSIS package and pass the paramter.

Let me know which way you want to go and answer my above questions.

Regards,
Jason
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

In this article I will describe the Backup & Restore 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.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

744 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