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();
// }
// }
// }
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.