General information
Forum:
Microsoft SQL Server
Title:
User Define Function
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.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only