Information générale
Catégorie:
Bases de données
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement