dbTalk Databases Forums  

Using UDF's in ActiveX transformations

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


Discuss Using UDF's in ActiveX transformations in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Conan Kelly
 
Posts: n/a

Default Using UDF's in ActiveX transformations - 05-16-2006 , 11:38 AM






Hello all,

Is it possible to use a User Defined Function in an ActiveX transformation using VB Script?

I created a UDF in the Master DB that will return the date of the last day of the month based on the date passed to it.

My first attempt at this did not work. I don't remember the exact syntax I used (this was a couple weeks back), but it was
something like:

Function Main()
DTSDestination("MEDate") = master.dbo.EOMonth(DTSSource("Prod Dt"))
Main = DTSTransformStat_OK
End Function

No workie!

Can this be done? If so, how?

Thanks for any help anyone can provide,

Conan Kelly



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.