Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to generate PK on SQL table
Message
From
05/01/2001 08:45:01
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00459598
Message ID:
00459743
Views:
21
>I understand there are potential problems using Identity fields in SQL to generate a PK.
>
>1. Trying to return value with @@identity may give value for insert on another table
>2. Problems with replication
>
>What is the best way to get around these problems? Does SQL 2000 have something to help get around #1? We plan to use replication in the future, should we use GUIDs from the beginning and forget identity fields?
>
>Thanks.
>Doug

#1 is false
#2 - makes more sense to use guids
Ken B. Matson
GCom2 Solutions
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform