Hi,
I hope this isn't akin to a trekkie walking into a Star Wars convention since I've gone through a year of postings in this forum and found not what I need.
Essentially, I want to add a dialog box that a user can navigate to a .CSV that will be used as a datasource for a simple DTS package (.dts file, nothing fancy ) but I am lost with Connetion2 and Package2Class classes and how the Datasource property fits in. At the moment I'm not worried about dialog boxes. Programmatically setting the datasource property is what I wish.
The C# I created runs the external .DTS file successfully but building on it has led me to a whole day of web browsing and evening with the MSDN Library. No luck.
DTS.Package2Class package = new DTS.Package2Class();
package.LoadFromStorageFile(
fileName, // file path to .dts
password,
packageID,
versionID,
name,
ref pVarPersistStgOfHost);
package.Execute(); // Works!!
I had a look at Connections.NewDataLink(UDL) but couldn't work out how to set ms data link provider properties for text file if it can at all
I found Activex scripts that alluded to Connection2 and datasource = (datasource) so I sort of gather it can be done.
Some examples would be nice. MSDN library has me going in circles.
SQL2000 and VS .net 2003 enterprise are my primary tools under xp sp2
Whooaa! Just looked at the clock ,19 hours of this, think I've got thrombosis.
Thank you in advance
Anthony
I hope this isn't akin to a trekkie walking into a Star Wars convention since I've gone through a year of postings in this forum and found not what I need.
Essentially, I want to add a dialog box that a user can navigate to a .CSV that will be used as a datasource for a simple DTS package (.dts file, nothing fancy ) but I am lost with Connetion2 and Package2Class classes and how the Datasource property fits in. At the moment I'm not worried about dialog boxes. Programmatically setting the datasource property is what I wish.
The C# I created runs the external .DTS file successfully but building on it has led me to a whole day of web browsing and evening with the MSDN Library. No luck.
DTS.Package2Class package = new DTS.Package2Class();
package.LoadFromStorageFile(
fileName, // file path to .dts
password,
packageID,
versionID,
name,
ref pVarPersistStgOfHost);
package.Execute(); // Works!!
I had a look at Connections.NewDataLink(UDL) but couldn't work out how to set ms data link provider properties for text file if it can at all
I found Activex scripts that alluded to Connection2 and datasource = (datasource) so I sort of gather it can be done.
Some examples would be nice. MSDN library has me going in circles.
SQL2000 and VS .net 2003 enterprise are my primary tools under xp sp2
Whooaa! Just looked at the clock ,19 hours of this, think I've got thrombosis.
Thank you in advance
Anthony