Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Auto int in sql server
Message
 
To
05/04/2006 15:57:06
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01110759
Message ID:
01110762
Views:
9
>it is possible to reset a autoinc in a table of sql server
>
>
>
>now it 89000
>
>
>and i have delete all the table can i put it back to 1 ????
>
>thanks

If the table has no records, just TRUNCATE TABLE MyTable, but if it has, you could use SET IDENTITY_INSERT MyTable ON (I hope this is the right statement, I can't check it right now) and then insert into idenetity field the value you want.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform