prevost999
Programmer
I am attempting, through DTS, to bring delimited data from a text file into a SQL Server database. I am having a problem bringing over the dates(which appear in the source file as mmddyyyy(i.e. 092420001), and have tried the following syntax in an ActiveX Script Transformation:
Function Main()
DTSDestination("t_dtmd" = CDATE(DTSSource("Col056")
Main = DTSTransformStat_OK
End Function
I tried everthing, but keep getting the following error:
Error Description: Type Mismatch: 'CDATE'
The datatype for the destination field is datetime.
Any help/advice out there?
The
Function Main()
DTSDestination("t_dtmd" = CDATE(DTSSource("Col056")
Main = DTSTransformStat_OK
End Function
I tried everthing, but keep getting the following error:
Error Description: Type Mismatch: 'CDATE'
The datatype for the destination field is datetime.
Any help/advice out there?
The