Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resetting an identity in SQL Server
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00162000
Message ID:
00162009
Views:
29
>Sorry Michel, but you can't. I went through this a couple of months ago. The only way is to drop the table and recreate it. So, instead of your script issuing DELETE FROM CT_PRIORITY, have your script DROP TABLE CT_PRIORITY and then CREATE TABLE CT_PRIORITY...

It's a nice workaround.

>Not exactly elegant, and it obviously shouldn't be done while the database is in use since Murphy's Law says someone will try to hit the table exactly between the DROP and the CREATE!

It's in development stage only.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform