Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Run SSIS Package from .Net


Run SSIS Package from .Net

Author
Message
JimS-Indy
JimS-Indy
Old Hand
Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)

Group: General Forum Members
Points: 347 Visits: 444
I've read several posts and blogs on the subject. I think I have a strategy. Here's how I came by it...

My users do not have the DTS environment on their systems. That means the object model is at best inconvenient.

I need to pass parameters to the SSIS package, so an ADO.net call to a stored procedure could work, but I think I like option 3....

I think I'll set up a SQL Server table that contains the (zero or more) file names that are ready to be processed, along with any other parameters, and then, when my user (who has permission to do this...) imports the data into a flat file, the program doing that will post the filename (and any other parameters) to the SQL Server table. Then, I'll set up a scheduled agent on SQL Server that checks for new entries in the table and fires up the appropriate SSIS package....

That make sense to you all? Or should I just do option 2 with the ADO call to a stored procedure that sets off the SSIS package. It's pretty much asynchronous either way, I think...

What do you think?

Jim
Koen Verbeeck
Koen Verbeeck
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16441 Visits: 13202
If it's SSIS 2012, you can very easily start SSIS packages with parameters using stored procedures, so I would look into that route. I believe you can also run the SSIS packages synchronously if you'd like.



How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at SQLKover.

MCSA SQL Server 2012 - MCSE Business Intelligence
JimS-Indy
JimS-Indy
Old Hand
Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)Old Hand (347 reputation)

Group: General Forum Members
Points: 347 Visits: 444
Koen, do you have any references I could read to get me started? It is SS2012.

Jim
Koen Verbeeck
Koen Verbeeck
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16441 Visits: 13202
Deploy and Execute SSIS Packages using Stored Procedures

Step by step of executing SSIS 2012 package through stored procedure



How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?

Member of LinkedIn. My blog at SQLKover.

MCSA SQL Server 2012 - MCSE Business Intelligence
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search