Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to handle the incremental values

Status
Not open for further replies.

SqlHunter

Programmer
Jun 3, 2004
166
US
I have an ActiveX script to migrate the data and the source data is join of different tables.


Function Main()

DTSDestination("Spike_id")---> This is an incremental value and source doesn't have any value. so I have to go on increment it.Normally it is suppose to increment automatically when u insert but its not working and gives me an error.So i have to get the max of the spike_id and then add one to it.So please help me how to increment this value

DTSDestination("emp_id") = DTSSource("emp_id")
DTSDestination("Dept") = DTSSource("Dept_System_default")
DTSDestination("loan_amount") = DTSSource("amount")
DTSDestination("Entry_dateoriginal_upb")= DTSSource("original_date")
DTSDestination("interest_rate") = DTSSource("interest_rate")
DTSDestination("created_by") ="Admin"
DTSDestination("create_date") =Date

Main = DTSTransformStat_OK

End Function
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top