Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wrapping all SQL updates into one transaction
Message
From
11/01/2000 11:45:48
 
 
To
11/01/2000 11:32:05
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00315804
Message ID:
00316269
Views:
19
>>In order to use SQLCOMMIT/SQLROLLBACK, you need to issue a SQLSETPROP for the connection immediately before the start of the changes being submited as a transaction, telling the backend to operate in Mnual Transaction mode. You can then submit SQLEXECs to you heart's content. Once you've finished, if all SQLEXECs completed successfully and you want the changes made committed, you issue a SQLCOMMIT, otherwise, a SQLROLLBACK. In order to prevent the next set of SQLEXECs from being treated as a manual transaction, you use SQLSETPROP to reset the transaction processing.
>
>What would happen if the system hangs before it gets to SQLCOMMIT/SQLROLLBACK?

If the session disconnects before a transaction completes, the transaction will be rolled back.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform