Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set IMPLICIT_TRANSACTIONS
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00638591
Message ID:
00638641
Vues:
14
This message has been marked as the solution to the initial question of the thread.
>SET IMPLICIT_TRANSACTIONS only controls how transactions begin, correct?

Yes - for explicit transactions. When IMPLICIT_TRANSACTION is ON, SQL Server will start an user-defined transaction when a DML query is issued.

>When I issue the following command in VFP
>
>SQLSETPROP(n,'Transactions',DB_TRANSMANUAL)
>
>it sets IMPLICIT_TRANSACTIONS ON (which is a little confusing to me). Why would I ever set Transactions to DB_TRANSMANUAL? It seems easier to me to leave IMPLICIT_TRANSACTIONS OFF and explicitly begin and commit transactions by myself. Anyone have some insight?

You're free to do either. Using DB_TRANSAMANUAL allows you to control the transaction independent of the data source. If COM+ was involved, you'd be better off using declaritive transaction unless you absolutely couldn't afford the impact of spinning up DTC. In which case, you'd be better off handling your transaction within stored procedures.

You are using stored procedures - right?

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform