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

>>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.

Again, I never said that the use of generated PKs is wrong, neither any other solution is wrong. However one solution seems to be more constructive and logical than others.

However I think that it is wrong to say that a VFP developer should be forced to use generated PKs, this is simply asking for problems. It depends on your situation.

>As for reusing PK, whenever I had a client who fell on that problem meant that the PK wasn't really unique after all.

huh ?? could you explain that ??

Walter,
Previous
Reply
Map
View

Click here to load this message in the networking platform