Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Just one Record
Message
De
10/11/2001 18:18:08
 
 
À
10/11/2001 17:42:25
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00580197
Message ID:
00580198
Vues:
20
Steven,
Probably because the buffer mode is set to 3 (optimistical row locking). Try setting the buffer mode to optimistical table locking:
CURSORSETPROP("Buffering", 5)
Then explicitly call TABLEUPDATE() or TABLEREVERT() to commit/revert changes to the backend.

HTH
>I am using the following SQL pass-through
>
>lParameters prodwg
>Local processdone
>
>prodwg = "'" + prodwg + "'"
>
>sflgdone = SQLCONNECT('pdmsupflag')
> sflgpro = "Select * From maindatad Where dm_drawing = &prodwg"
>
> =SQLEXEC(sflgdone, sflgpro, 'sflging')
> =CURSORSETPROP("Tables" , "maindatad")
> =CURSORSETPROP("UpdateNameList" , "dsflag maindatad.dsflag")
> =CURSORSETPROP("KeyFieldList", "dm_drawing, dsflag")
> =CURSORSETPROP("UpdatableFieldList", "dsflag")
> =CURSORSETPROP("SendUpdates", .T.)
>Browse
>Use
>=SQLDISCONNECT(sflgdone)
>
>Why is it updating every record and not just the one I want?
Daniel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform