DTS Transformation Script & Identity Column... -
07-06-2004
, 02:31 PM
I have a small table consisting of three columns (identity, varchar, and
datetime). I have to import a text file containing strings into the table.
Each line of the text file is a row to be imported. Since the datetime
column can't be empty I'm modifying the transformation script. I've added:
DTSDestination("dt") = Now. I have no idea if that will work or not. My
problem is coming from the identity column. I have no identity number to
provide and it won't work without one. How can I modify my script to tell
it to create it's own number? That's why I set the column to identity -- so
I wouldn't have to provide a number.
Here's my script:
Function Main()
DTSDestination("vrtext") = DTSSource("Col002")
DTSDestination("dt") = Now
Main = DTSTransformStat_OK
End Function
Any help would be greatly appreciated. |