Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing PK to transfer data to different database
Message
 
To
14/08/2002 13:59:56
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00689669
Message ID:
00691763
Views:
18
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform