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)
 Use of "Identity increment" during Import ?

Author  Topic 

rwklein1
Starting Member

5 Posts

Posted - 2005-01-06 : 19:33:55
Am very new to SQL Server, just learning how to do an import using DTS wizard. My table's 1st column is like a Sequence Number/PK (called Identity in MS SQL Lingo?).
Defined to start at seed 1, increment by 1.

I'm importing data for first time into this table from a
comma-delimited file (which populates all other columns except for 1st column). How do I make DTS Wizard generate the sequence number for that first column during the Import ? Thanks!

nr
SQLTeam MVY

12543 Posts

Posted - 2005-01-07 : 00:58:02
Easiest to create a view on the table without the first column and bulk insert into that.
Or you can use a format file.



==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -