Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing PK to transfer data to different database
Message
 
À
14/08/2002 13:59:56
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00689669
Message ID:
00691763
Vues:
19
James,

I believe you would be better off using SQL Server's IDENTITY keyword on your PK column. You then would not need to have another table hold the last value used for a PK. This is only if your PK does not have any 'intelligence' in it.

Also, if you use this type in all or most of your PK's, you can still have alternate keys (AK), but your foreign key constraints will be based on these IDENTITY columns, thereby never having to do any cascading updates due to a change in the AK.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform