Groups | Blog | Home
all groups > sql server clients > november 2004 >

sql server clients : Alter identity -field?



Scott Morris
11/10/2004 8:30:39 AM
dbcc checkident

[quoted text, click to view]

Major
11/10/2004 11:44:29 AM
Hello.

I have a table with int identity field (X INT IDENTITY(1,1)).
I want update SEED value to 4000.

I cannot drop column because I have a foreign key to it from other table.

How I can do this (update/alter identity's SEED value to column)?

Hari Prasad
11/10/2004 10:08:37 PM
Hi,

Execute the below command, replace the dbname and table name with actual

USE DBNAME
GO
DBCC CHECKIDENT (tablename, RESEED, 4000)


--
Thanks
Hari
SQL Server MVP

[quoted text, click to view]

AddThis Social Bookmark Button