Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTS transfers using C sharp ( sql server )

Status
Not open for further replies.

hbartow

Programmer
Jan 14, 2004
3
US
I'm trying to convert a small vb program to csharp which uses sql server DTS objects.

In VB, I add the 'Microsoft DTSPackage Object Library' under project/references and am able to use the DTS transfer objects in my vb program.

I've converted the code to c sharp ( i think ), but don't know how to go about adding this library/dll to my c sharp program.

Any ideas? Thank you.
 
You will find the same in C#:
Solution Explorer-> right click on References-> scroll in the COM tab and select above Package and the DTS entry will be added in the References tree.
-obislavu-
 
thanks. I currently don't use Visual Studio. do you know how to do this using a standard text editor and the .net sdk? Thanks.
 
You should have access/registered the dtspkg.dll and link with this dll :
csc Class1.cs
csc /target:library MyLib.cs
csc /reference:MyLib.dll dtspkg.dll
csc ...

-obislavu-

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top