Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resetting an identity in SQL Server
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00162000
Message ID:
00162009
Vues:
35
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform