Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Run SSIS Package from .Net Expand / Collapse
Author
Message
Posted Tuesday, October 15, 2013 7:06 PM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Monday, June 30, 2014 12:49 PM
Points: 318, Visits: 440
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
Post #1505041
Posted Wednesday, October 16, 2013 1:36 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 3:18 PM
Points: 13,312, Visits: 10,178
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 LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1505089
Posted Wednesday, October 16, 2013 8:07 AM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Monday, June 30, 2014 12:49 PM
Points: 318, Visits: 440
Koen, do you have any references I could read to get me started? It is SS2012.

Jim
Post #1505221
Posted Wednesday, October 16, 2013 12:48 PM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 3:18 PM
Points: 13,312, Visits: 10,178
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 LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1505380
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse