Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reset @@identity
Message
From
21/06/2001 09:56:12
 
 
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:
00521882
Views:
13
This message has been marked as a message which has helped to the initial question of the thread.
Hi!

Just generate SQl Script for all your tables, delete them all, then re-create them again. Re-creating table from zero will reset the current identity value. If you have no daat in table, it is safe and easy (just right click on the table in Enterprise Manager and find the Generate SQL Script... or something like that).

HTH.

PS: is not it the question for SQl Server forum???

>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.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform