Skip to content

Latest commit

 

History

History
96 lines (58 loc) · 5.71 KB

File metadata and controls

96 lines (58 loc) · 5.71 KB
title Configure the remote access Server Configuration Option
description Learn about alternatives to the deprecated remote access option. View other sources for troubleshooting issues with SQL Server connections.
author rwestMSFT
ms.author randolphwest
ms.date 03/28/2022
ms.prod sql
ms.technology configuration
ms.topic conceptual
helpviewer_keywords
remote servers [SQL Server], stored procedure execution

Configure the remote access Server Configuration Option

[!INCLUDE SQL Server]

This article is about the remote access configuration option, which is a deprecated [!INCLUDEssNoVersion] to [!INCLUDEssNoVersion] communication feature.

This option affects servers that are added by using sp_addserver and sp_addlinkedserver. You should leave remote access enabled (the default) if you use linked servers.

Important

[!INCLUDEssNoteDepFutureAvoid]

If you reached this page because you're having trouble connecting to [!INCLUDEssNoVersion], see one of the following articles instead:

Programmers may be interested in the following articles:

Manage remote access

The remote access configuration option controls the execution of stored procedures from local or remote servers on which instances of [!INCLUDEssNoVersion] are running.

The default value for the remote access option is 1 (enabled). This grants permission to run local stored procedures from remote servers or remote stored procedures from the local server. To prevent local stored procedures from being run from a remote server or remote stored procedures from being run on the local server, set the option to 0 (disabled).

This setting doesn't take effect until you restart [!INCLUDEssNoVersion].

Remote access is required for the log shipping status report in SQL Server Management Studio (SSMS) to work and the LSAlert Job to complete appropriately.

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 access option

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

  2. Select the Connections node.

  3. Under Remote server connections, select or clear the Allow remote connections to this server check box.

Using Transact-SQL

To configure the remote access option

  1. Connect to the [!INCLUDEssDE].

  2. From the Standard bar, select New Query.

  3. Copy and paste the following example into the query window and select Execute. This example shows how to use sp_configure to set the value of the remote access option to 0.

EXEC sp_configure 'remote access', 0;
GO  
RECONFIGURE;  
GO

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

See also