Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Auto Incrementing...
Message
De
24/11/2001 19:12:10
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00556218
Message ID:
00585454
Vues:
44
Sorry for taking so long to get back to you. I just now discovered the replies button on the top of the web page.

I avoid autoincrements mainly because of the gymnastics that I have to do find out the PK when a record is added in VFP. I think it is better to get the PK from a control table and then insert a record into a view or cursor and then insert the row into the table when the user says the data is correct. I was burned badly one time when I was using @@identity to get the PK and what I was getting was a tables PK that was being inserted by the trigger.

I was also told that autoincrements should be used in a replicating system. I must admit that I have not used a version of SQL Server greater than 6.5. I have mainly use Sybase SQL Anywhere for the last 4 years.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform