dbTalk Databases Forums  

How can I call a VB.NET class from a DTS package?

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss How can I call a VB.NET class from a DTS package? in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
chambersdon@hotmail.com
 
Posts: n/a

Default How can I call a VB.NET class from a DTS package? - 02-23-2005 , 05:22 PM






I have a VB.NET class that I need to call from a DTS package. I need
to set a couple of properties and then call a method.

I've tried the activeX Script task but I can't seem to get it to work.
I used CreateObject but I think it wants a COM component.

Don


Reply With Quote
  #2  
Old   
KV
 
Posts: n/a

Default Re: How can I call a VB.NET class from a DTS package? - 02-23-2005 , 05:45 PM






You have two choices:
- Make your VB.Net class as COM component and call from ActiveX script task.
- Make DTS custom task in .Net (search MSDN for how to do it) and natively
call your VB.Net class.

Second approach is more complicated, but it will give you full control of
task.

Konstantin.

<chambersdon (AT) hotmail (DOT) com> wrote

Quote:
I have a VB.NET class that I need to call from a DTS package. I need
to set a couple of properties and then call a method.

I've tried the activeX Script task but I can't seem to get it to work.
I used CreateObject but I think it wants a COM component.

Don




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.