Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User Define Function
Message
General information
Forum:
Microsoft SQL Server
Category:
Import/Export
Miscellaneous
Thread ID:
00565911
Message ID:
00568184
Views:
20
>Hi.
>Is it possible to call a user define function from a DTS ActiveX Script.
>There is my code :
>Function Main()
> If trim(DTSSource("TXT"))="MONTHLY STATEMENT" THEN
> DTSDestination("LPAGE") = "1"
> Else
> DTSDestination("LPAGE") = "0"
> End If
> DTSDestination("DDATE") = date()
> DTSDestination("NDATE") = dbo.fn_tton(date())
> Main = DTSTransformStat_OK
>End Function
>
>It doesn't recognize the function.

AFAIK, you cannot call SQL function from DTS script. However, you can create and call VBscript function or open ADO connection.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform