Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 splitting data

Author  Topic 

mikejohnson
Posting Yak Master

153 Posts

Posted - 2004-07-09 : 11:46:33
in my dts package i need to split one table into two basically. lets assume this is my table structure

transactionid customername
------------- ------------
1 mike
2 john

when i run the dts package, i will have two tables like so:

CUSTOMERS
customerid customername
------------- ------------
1 mike
2 john

TRANSACTIONS
id transactionid customerid
-- ------------- ----------
1 1 1
2 2 2


my customerid will be autoincremented, so how do i get the customerid in the transactions table?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-07-09 : 13:09:06
Dup:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=37300

Tara
Go to Top of Page
   

- Advertisement -