Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to reset count for identity field?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Divers
Thread ID:
00819923
Message ID:
00820647
Vues:
16
>Now that I think about it, though, it's probably not all that important, since when I move the tables back into production (I've modified the structures) the identity fields probably aren't copied over with it. They should correct themselves according to the table they're in, yes?

>Correct?


Not nessarily. It depends on how you migrate your data. If you use the Import/Export Wizard it will preserve the identitiy values by setting identity insert to on. If you move your data manually you can reset the identity values by just doing regular inserts, but be careful if you have any relationships defined that you update those keys too.

Eric
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform