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
 General SQL Server Forums
 New to SQL Server Programming
 auto increment

Author  Topic 

josimafiosi
Starting Member

3 Posts

Posted - 2006-03-15 : 08:48:21
I have important a table from mircosoft access into ms sql server 2000, I've created a new ID row and set the primary key - but I need to use the ID from microsoft access as well. therefore I'd like to add an auto increment +1 on the old access ID field... but how do I do that?

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-03-15 : 08:50:10
alter the table and change the column to with identity(starting_no, 1)



KH


Go to Top of Page
   

- Advertisement -