you can run your SSIS package programmatically, as shown below:
using System; using Microsoft.SqlServer.Dts.Runtime.Wrapper; namespace ConsoleApplicationSSIS { class Program { static void Main(string[] args) { Console.WriteLine("Loading SSIS Service...");
if you want a full sample, go to: http://hassanboutougha.wordpress.com/2012/10/13/run-your-ssis-package-progammatically/
I will explain how to create a simple SSIS package even after it is called programmatically from a console application. Do not forget to make this assembly: C: \ Program Files (x86) \ Microsoft SQL Server \ 100 \ SDK \ Assemblies \ Microsoft.SQLServer.DTSRuntimeWrap.dll for reference to the sys runtime namespace
you can also programmatically pass your variables and also change the source and target connections of your ssis package
source share