Switch to full style
Codes, tips and tricks,discussions and solutions related to C#
Post a reply

SSIS .dtsx packages and .net

Wed Feb 04, 2009 7:01 pm

I have the following code but I cannot seem to get a local simple .dtsx package to run in c#. I ran it with essentially the same code in VB.Net but c# keeps giving me errors. I have gotten the code to it's simpliest form and yet I still get errors. any ideas?
Yes, i do have all the correct references and namespaces.

public class clsSSIS1
// {
// public static void RunDTSX()
// {
// string pkgLocation;
// pkgLocation = "C:\\Documents and Settings\\otmxm1\\Desktop\\LoadBeaPayroll\\LoadBeaPayroll\\bin\\package.dtsx";

// Application app = new Application();
// Package package = null;
// Package pkg = app.LoadPackage(pkgLocation, null,true);
//Package pkg = app.LoadPackage(@"C:\Documents and Settings\otmxm1\Desktop\LoadBeaPayroll\LoadBeaPayroll\bin\package.dtsx", null);
// DTSExecResult result = package.Execute();
//Console.WriteLine (result.ToString);
// Console.ReadKey();

// }
// }
// }



Post a reply
  Related Posts  to : SSIS .dtsx packages and .net
 packages in java     -  
 connect SSIS package with ASP.net     -  
 make decision while importing packages     -  
 Uplading Files Dynamically Using SSIS     -