From 13362833e5f09ecf4221ee934c954170c9e451f3 Mon Sep 17 00:00:00 2001 From: Alfred Myers Date: Wed, 21 Nov 2018 23:34:08 -0200 Subject: [PATCH] Minor tweek on local-transactions.md --- docs/framework/data/adonet/local-transactions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/framework/data/adonet/local-transactions.md b/docs/framework/data/adonet/local-transactions.md index 4baf9ec0f5a86..90e5cadeb8a01 100644 --- a/docs/framework/data/adonet/local-transactions.md +++ b/docs/framework/data/adonet/local-transactions.md @@ -15,7 +15,7 @@ Transactions in [!INCLUDE[vstecado](../../../../includes/vstecado-md.md)] are us Each of the [!INCLUDE[dnprdnshort](../../../../includes/dnprdnshort-md.md)] data providers has its own `Transaction` object for performing local transactions. If you require a transaction to be performed in a SQL Server database, select a transaction. For an Oracle transaction, use the provider. In addition, there is a class that is available for writing provider-independent code that requires transactions. > [!NOTE] -> Transactions are most efficient when it is performed on the server. If you are working with a SQL Server database that makes extensive use of explicit transactions, consider writing them as stored procedures using the Transact-SQL BEGIN TRANSACTION statement. +> Transactions are most efficient when they are performed on the server. If you are working with a SQL Server database that makes extensive use of explicit transactions, consider writing them as stored procedures using the Transact-SQL BEGIN TRANSACTION statement. ## Performing a Transaction Using a Single Connection In [!INCLUDE[vstecado](../../../../includes/vstecado-md.md)], you control transactions with the `Connection` object. You can initiate a local transaction with the `BeginTransaction` method. Once you have begun a transaction, you can enlist a command in that transaction with the `Transaction` property of a `Command` object. You can then commit or roll back modifications made at the data source based on the success or failure of the components of the transaction.