Versions des environnements
My apologies, my memory is not as good as it used to be. I should have looked it up.
?sqlsetprop(0,"transactions",2)
1 is auto commit.
If you use 0 as the connection number then all connections will be set that way. Use the connection number if you just want to set that connection.
>James,
>
>How do you set "autocommit" to .F.? I can't find which class has this property. Please let me know.
>
>>If you set autocommints = .f. then you can update both CAs and do a sqlcommint() or sqlrollback() at the end and it will roll everything into a transaction on the remote server side.
>>
>>
>>>>Hi,
>>>>
>>>>Is this the right approach to use BEGIN/END TRANSACTION when updating more that one cursor adapter cursors? And if the cursor adapters use SQL Server tables, will the ROLLBACK undo the changes to the SQL Server table(s)?
>>>>
>>>>TIA.
>>>
>>>IMHO, the best way will be to use a Stored procedure, where you can implement transactions.
>>>
>>>I don't think VFP transactions will be of much help here - you can search older messages (about 5 years back), I believe Dorin V was having a similar problem and had discussions with Aleksey T.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement