Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use generated primary keys ?
Message
From
09/05/2000 09:30:32
 
 
To
08/05/2000 13:48:19
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00367063
Message ID:
00367597
Views:
48
Walter,

>Yes, it works but (as i did describe in problem 3), not in all cases. Besides this I simply think it is wrong to use the Uniqueness violation as an argument to never reuse PKs. It is a fact that this problem only exist when not using filtered primary indexes. Outside the xBase language this problem does NOT exist !!

Considering that every DBMS system has it's own specifics, I don't see a problem. For example, while in SQLServer you can SELECT @@Identity, it doesn't work in VFP or Access. I don't know about Oracle. This doesn't make it wrong.

As for reusing PK, whenever I had a client who fell on that problem meant that the PK wasn't really unique after all.
Sylvain Demers
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform