dbTalk Databases Forums  

How to execute vb.net function in a dll file from DTS ?

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


Discuss How to execute vb.net function in a dll file from DTS ? in the microsoft.public.sqlserver.dts forum.



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

Default How to execute vb.net function in a dll file from DTS ? - 04-26-2004 , 04:14 AM






Hi,
i want execute in my DTS a function .NET that has been define in a dll file !

Thanks
Mick

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: How to execute vb.net function in a dll file from DTS ? - 04-26-2004 , 04:34 AM






817248 - HOW TO: Call Visual Basic .NET Assembly from Visual Basic 6.0 and
Call Visual Basic COM Component from Visual Basic .NET
(http://support.microsoft.com/default...8&Product=vbNE
T)


You will need to expose your assembly to COM, see the section "Expose .NET
Framework Assemblies to COM Clients" in the KB link.

You can then call this via COM in an ActiveX Script Task.

An alternative would be to create a full custom task and leverage the .Net
functions that way-

328587 - HOW TO: Create a DTS Custom Task by Using Visual Basic .NET
(http://support.microsoft.com/default...7&Product=vbNE
T)


--
Darren Green
http://www.sqldts.com

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

Quote:
Hi,
i want execute in my DTS a function .NET that has been define in a dll
file !

Thanks
Mick



Reply With Quote
  #3  
Old   
sadmick@hotmail.com
 
Posts: n/a

Default Re: How to execute vb.net function in a dll file from DTS ? - 05-03-2004 , 02:54 AM



Hi,

I have "Expose .NET Framework Assemblies to COM Clients" (use command
Tlbexp and regasm) and now, how i call my function in activeX ?



"Darren Green" <darren.green (AT) reply-to-newsgroup-sqldts (DOT) com> wrote

Quote:
817248 - HOW TO: Call Visual Basic .NET Assembly from Visual Basic 6.0 and
Call Visual Basic COM Component from Visual Basic .NET
(http://support.microsoft.com/default...8&Product=vbNE
T)


You will need to expose your assembly to COM, see the section "Expose .NET
Framework Assemblies to COM Clients" in the KB link.

You can then call this via COM in an ActiveX Script Task.

An alternative would be to create a full custom task and leverage the .Net
functions that way-

328587 - HOW TO: Create a DTS Custom Task by Using Visual Basic .NET
(http://support.microsoft.com/default...7&Product=vbNE
T)


--
Darren Green
http://www.sqldts.com

sadmick (AT) hotmail (DOT) com> wrote in message
news:d44c18b1.0404260114.2440abbb (AT) posting (DOT) google.com...
Hi,
i want execute in my DTS a function .NET that has been define in a dll
file !

Thanks
Mick

Reply With Quote
  #4  
Old   
Darren Green
 
Posts: n/a

Default Re: How to execute vb.net function in a dll file from DTS ? - 05-04-2004 , 04:39 PM



In message <d44c18b1.0405022354.1116905b (AT) posting (DOT) google.com>,
sadmick (AT) hotmail (DOT) com writes
Quote:
Hi,

I have "Expose .NET Framework Assemblies to COM Clients" (use command
Tlbexp and regasm) and now, how i call my function in activeX ?



Once you have made you assembly available through COM via regasm you
just create the object and call the method as usual. You need to know
the progid to use in CreateObject, here is a post that explains it quite
well. Probably plenty more info in MSDN as well.

http://tinyurl.com/33nwo


--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



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.