![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all, I have a table which has 6 columns and a text file which has four columns that are need to be loaded to the table. I have set the data source and the destination data. Now the two columns the text file doesn't have are primary key column and timestamp which simply should be incremented by 1 and filled with the time of the transfer respectively. How to edit the transformation code so that I could fill this column out? For instance, Function Main() 'DTSDestination("PrimaryKeyColumnName") = incremental value DTSDestination("gamingserverid") = DTSSource("gamingserverid") DTSDestination("casinoid") = DTSSource("casinoid") DTSDestination("userid") = DTSSource("userid") DTSDestination("balance") = DTSSource("balance") 'DTSDestination("timestamp") = GETDATE() Main = DTSTransformStat_OK End Function Thanks a lot *** Sent via Developersdex http://www.developersdex.com *** |
#3
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |