Skip to content

Latest commit

 

History

History
108 lines (72 loc) · 5.05 KB

File metadata and controls

108 lines (72 loc) · 5.05 KB
title Configure the remote proc trans Server Configuration Option | Microsoft Docs
ms.custom
ms.date 03/02/2017
ms.prod sql-non-specified
ms.prod_service database-engine
ms.service
ms.component configure-windows
ms.reviewer
ms.suite sql
ms.technology
database-engine
ms.tgt_pltfrm
ms.topic article
helpviewer_keywords
remote proc trans option
distributed transactions [SQL Server], enforcing
ms.assetid cfbc6158-ab96-44b4-87eb-ea278c1b0c6b
caps.latest.revision 23
author MikeRayMSFT
ms.author mikeray
manager craigg
ms.workload Inactive

Configure the remote proc trans Server Configuration Option

[!INCLUDEappliesto-ss-xxxx-xxxx-xxx-md]

This topic describes how to configure the remote proc trans server configuration option in [!INCLUDEssCurrent] by using [!INCLUDEssManStudioFull] or [!INCLUDEtsql]. The remote proc trans option helps protect the actions of a server-to-server procedure through a [!INCLUDEmsCoName] Distributed Transaction Coordinator (MS DTC) transaction.

Set the value of remote proc trans to 1 to provide an MS DTC-coordinated distributed transaction that protects the ACID (atomic, consistent, isolated, and durable) properties of transactions. Sessions begun after setting this option to 1 inherit the configuration setting as their default.

Important

[!INCLUDEssNoteDepNextAvoid]

In This Topic

Before You Begin

Prerequisites

  • Remote server connections must be allowed before this value can be set.

Recommendations

  • This option is provided for compatibility with earlier versions of [!INCLUDEmsCoName] [!INCLUDEssNoVersion] for applications that use remote stored procedures. Instead of issuing remote stored procedure calls, use distributed queries that reference linked servers, which are defined by using sp_addlinkedserver.

Security

Permissions

Execute permissions on sp_configure with no parameters or with only the first parameter are granted to all users by default. To execute sp_configure with both parameters to change a configuration option or to run the RECONFIGURE statement, a user must be granted the ALTER SETTINGS server-level permission. The ALTER SETTINGS permission is implicitly held by the sysadmin and serveradmin fixed server roles.

Using SQL Server Management Studio

To configure the remote proc trans option

  1. In Object Explorer, right-click a server and select Properties.

  2. Click the Connections node.

  3. Under Remote server connections, select the Require Distributed Transactions for server to server communication check box.

Using Transact-SQL

To configure the remote proc trans option

  1. Connect to the [!INCLUDEssDE].

  2. From the Standard bar, click New Query.

  3. Copy and paste the following example into the query window and click Execute. This example shows how to use sp_configure to set the value of the remote proc trans option to 1.

USE AdventureWorks2012 ;  
GO  
EXEC sp_configure 'remote proc trans', 1 ;  
GO  
RECONFIGURE ;  
GO  
  

For more information, see Server Configuration Options (SQL Server).

Follow Up: After you configure the remote proc trans option

The setting takes effect immediately without restarting the server.

See Also

RECONFIGURE (Transact-SQL)
Server Configuration Options (SQL Server)
sp_configure (Transact-SQL)