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)
 Alter the identity column Seed on a table

Author  Topic 

rajk
Starting Member

20 Posts

Posted - 2003-05-09 : 07:36:37
I have a table with about half a million records and an identity column.

I am trying to change the seed value of the identity column to give a new value. It gives me a timeout error repeatedly.

The database is local on my machine.

All I want to do is change the seed value of identity column of an existing table with a half million records and foreign key constraint on this column with six tables.

Any help is appreciated.

Thanks
Raj



nr
SQLTeam MVY

12543 Posts

Posted - 2003-05-09 : 10:58:22
How are you trying to do it.
Have you checked the table/database to see if it has errors.

You can change the seed with dbcc checkident
or if you want to increase it by inserting a row using set identity insert on then deleting it.

==========================================
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 -