I am creating a DTS package to import a .txt file that is pipe delimited. I am bringing it into a SQL2K db. My problem is that in the file, the date is listed as dd/mm/yyyy hh:mm:ss. I need to only bring over the dd/mm/yyy part. I know that there has to be a way to do this in the transformations.
Currently, my code is:
The order of the columns in the file matches the order of the columns in the table.
Here is also a line of the file so that it may clarify what I am asking.
1|GIFT CARD|672698000003|800000880826|CAMP BOWIE # 3|Activation/Issuance (New)|1|11/25/2003 12:16:25PM|6035710008090252507|729184|5|3|10
Thanks in advance for any help!!!
Currently, my code is:
Code:
Function Main()
If DTSSource("COL001") = "1" Then
Main = DTSTransformStat_OK
Else
Main = DTSTransformStat_SkipRow
End If
End Function
The order of the columns in the file matches the order of the columns in the table.
Here is also a line of the file so that it may clarify what I am asking.
1|GIFT CARD|672698000003|800000880826|CAMP BOWIE # 3|Activation/Issuance (New)|1|11/25/2003 12:16:25PM|6035710008090252507|729184|5|3|10
Thanks in advance for any help!!!