Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

Calling SSIS Package From C# Windows Form Application

$
0
0

Hiii, i created SSIS Solution for insert data into MS CRM Online from SQL SERVER Database. This SSIS solution running well and able to create a new data in MS CRM Online. Now i tried to run this SSIS from C# Win Form Application. 

Here the code i tried: 

Microsoft.SqlServer.Dts.Runtime.Application myApplication = new Microsoft.SqlServer.Dts.Runtime.Application();

                label1.Text = "loading package from file system.";
                Package myPackage = myApplication
                    .LoadPackage(@"D:\Master Project\SSIS FOR MS DYNAMICS CRM\Package.dtsx", null);

                label1.Text = "Executing Packages";
                DTSExecResult myresult = myPackage.Execute();

                label1.Text = "Package Result: " + myresult.ToString();


But this is the result i get:

Can you tell me what wrong with my code ?


Viewing all articles
Browse latest Browse all 55831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>