Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reset @@identity
Message
From
21/06/2001 10:15:33
 
 
To
21/06/2001 09:41:36
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00521874
Message ID:
00521898
Views:
12
This message has been marked as the solution to the initial question of the thread.
>Hello, All
>
>In development mode, using a MSDE database, I've done tests, including inserting the records in tables with @@identity field.
>
>Now it's time to send the database to the customer. How can I reset those fields back to 0? At this moment, I don't have any records in my tables, but if I insert a new record, the @@identity field will have the value starting from my tests.
>
>Thank you.

Remove all of the test rows with TRUNCATE TABLE mytablename and the identity fields should start with the default seed value again. HTH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform