Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Beginner
Message
 
 
To
28/12/2001 13:43:34
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Miscellaneous
Thread ID:
00598895
Message ID:
00598938
Views:
23
This message has been marked as the solution to the initial question of the thread.
>Hi All,
> I have a column field that has a identity increment set to 1
>After i insert few records the value increase ...but after i delete all the records and insert again...the value are not back to 1
>How can 1 change the value back to 1 ??
>

The TRUNCATE TABLE command resets identity to the seed for the column. If for some reason you cannot use it, take a look at DBCC CHECKIDENT in BOL.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform