Mar 21, 2003 #1 Kenos Programmer Jul 21, 2002 28 US Hello All I have an Identity Field and it starts at 1 I want to set this value to 10000 Without inserting Data The Identity Field is 2000 Now These values are already created and have data in them Can this be done? Thanks In Advance
Hello All I have an Identity Field and it starts at 1 I want to set this value to 10000 Without inserting Data The Identity Field is 2000 Now These values are already created and have data in them Can this be done? Thanks In Advance
Mar 21, 2003 #2 cheyney Programmer Jul 16, 2002 335 CA in your table designer, set the identity seed to 10000 Cheyney Upvote 0 Downvote
Mar 21, 2003 #3 tlbroadbent MIS Mar 16, 2001 9,982 US You can also use DBCC CHECKIDENT. USE YourDatabase GO DBCC CHECKIDENT (YourTable, RESEED, 10000) GO If you want to get the best answer for your question read faq183-874 and faq183-3179. Terry L. Broadbent - DBA SQL Server Page: http://tlbroadbent.home.attbi.com/sql/sql_articles.htm Upvote 0 Downvote
You can also use DBCC CHECKIDENT. USE YourDatabase GO DBCC CHECKIDENT (YourTable, RESEED, 10000) GO If you want to get the best answer for your question read faq183-874 and faq183-3179. Terry L. Broadbent - DBA SQL Server Page: http://tlbroadbent.home.attbi.com/sql/sql_articles.htm
Mar 24, 2003 Thread starter #4 Kenos Programmer Jul 21, 2002 28 US Thank You tlbroadbent This works well Upvote 0 Downvote