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
 Transact-SQL (2000)
 Script to reset Identity Value

Author  Topic 

sona
Yak Posting Veteran

68 Posts

Posted - 2004-03-15 : 02:14:00
I have a Identity Column in a table with some records.
I need to modify the identity starting value to 46116860184.
I did it through enterprise manager
Can i get the Alter Table script to do the same.

Regards,

Deepa

Frank Kalis
Constraint Violating Yak Guru

413 Posts

Posted - 2004-03-15 : 04:29:26
Generate the SQL script from within EM, and you'll see how you can do this.
Basically something like this

create table
.....
some_columns IDENTITY(46116860184, 1)

Another way could be to use DBCC CHECKIDENT.

--Frank
http://www.insidesql.de
Go to Top of Page
   

- Advertisement -