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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DTS Transform Data Task - Lookup Help

Status
Not open for further replies.

eao

MIS
Nov 14, 2001
104
0
0
US
I'm not very familiar with DTS, but thought it was the right tool for this job. I am trying to import data from one database to another, and the target table has a primary key called Sequence (int). I wrote a lookup that says:
Code:
select max (sequence) + 1
from Customer

...and the ActiveX script looks like this:
Code:
Function Main()
	DTSDestination("SEQUENCE") = DTSLookups("SEQUENCE").Execute()	
	Main = DTSTransformStat_OK
End Function

Do I need to link both a source and destination column for this task? I don't have a source column mapped because there isn't a corresponding field in the source table. Does this cause the query to run once per record on my source table?
 
Do I need to use a multiphase data pump for this task?
 
Nevermind, I'm all set. My lookup query was bad.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top