Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieving an auto-incremented value
Message
De
29/09/2004 09:49:32
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00947113
Message ID:
00947158
Vues:
19
>David, where in the original question You point to OleDB? :o))

Yes, thanks Borislav, you answered my question spot on. But you know, when you give them something, these users always want more :-)

>*** Update
I think with OleDb Should be look like this:

1. Begin transaciotn
2. Insert into Parent Table
3. Refresh the Parent Cursor/Record Set
4. GO TO end of Cursor/Record set
5. Store AUTOINC value to a variable
6. INSERT into child table

Thanks again, I will try this ! Is it safe from concurrent access - I mean, if someone inserts between 2 and 3, won't I get her inserted value instead of mine ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform