Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update Conflict - wrong ID #!
Message
De
04/06/2001 16:57:51
Paul Williamson
Williamson Enterprises, Inc.
Livingston, Montana, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00514333
Message ID:
00514846
Vues:
9
Hi Kevin,

>>
If you are getting the primary key value from sql*server and using the @@ command to retrieve it, beware that if you have insert/update triggers that create records in other tables (like audit tracking) then this could give you the those table's ID values instead (ok -- I only read about this on UT, I am still setting the primary key from a last used id table)
<<

Thanks for the info. Am not doing anything fancy like that. But I just figured it out (I think)!!

I was appending to the remote view from a cursor (Append From DBF("cursorname")). The cursor had an ID number field and the operation was trying to populate the view's ID field w/ it's value. That was causing something to go amuk (even though that ID number wasn't in the view). So, I just changed to an Append Blank and a bunch of Replace commands and so far, so good!

Thanks,

-paul
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform