Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Identity field management
Message
General information
Forum:
Microsoft SQL Server
Category:
Database management
Miscellaneous
Thread ID:
00472984
Message ID:
00472991
Views:
29
>If I will delete all records from the table and after it I will insert new record I will get Identity field = max + 1, but not 1...
>Why? And how to force SQL server to count Identity field from 1 again.
>
>Giedrius

I think you can use:

DBCC CHECKIDENT ('table_name', RESEED, new_reseed_value)

to reset the Identity value for a table.
Chris McCandless
Red Sky Software
Previous
Reply
Map
View

Click here to load this message in the networking platform