Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transactions on SQL Server
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Transactions on SQL Server
Miscellaneous
Thread ID:
00597109
Message ID:
00597109
Views:
47
Hi.

Which is the best way to use Transactions in MS-SqlServer?

OPTION A)
ConectionId = SqlStringConnect("blá blá blá")
SqlSetProp(blá blá blá)
SqlExec(blá blá blá)
SqlExec(blá blá blá)
SqlExec(blá blá blá)
SqlCommit(blá blá blá) [or] SqlRollback(blá blá blá)
OR...

OPTION B)
ConectionId = SqlStringConnect("blá blá blá")
SqlExec("BEGIN TRANSACTION")
SqlExec(blá blá blá)
SqlExec(blá blá blá)
SqlExec(blá blá blá)
SqlExec("COMMIT") [or] SqlExec("ROOLBACK")
?

Thanks!
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Rodolfo Duarte
Next
Reply
Map
View

Click here to load this message in the networking platform