Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Server vs. FoxPro
Message
From
08/05/2001 10:14:10
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00504606
Message ID:
00504691
Views:
18
>The best way to generate automatic primary key values is to use auto-increment integer key fields. You can get ID value using "SELECT @@IDENTITY" query to SQL Server.

I wouldn't say thats the best way, what if your INSERT triggers another INSERT somewhere else? Now the @@IDENTITY will be the key of another table, not the one you expected.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform