| title | Configure the remote access Server Configuration Option | Microsoft Docs | |
|---|---|---|
| ms.custom | ||
| ms.date | 08/11/2017 | |
| ms.prod | sql | |
| ms.prod_service | high-availability | |
| ms.reviewer | ||
| ms.technology | configuration | |
| ms.topic | conceptual | |
| helpviewer_keywords |
|
|
| ms.assetid | f5de748d-1c55-4714-9661-38fe62e5095f | |
| author | MikeRayMSFT | |
| ms.author | mikeray |
[!INCLUDEappliesto-ss-xxxx-xxxx-xxx-md]
This topic is about the "Remote Access" feature. This configuration option is an obscure [!INCLUDEssNoVersion] to [!INCLUDEssNoVersion] communication feature that is deprecated, and you probably shouldn't be using it. If you reached this page because you are having trouble connecting to [!INCLUDEssNoVersion], see one of the following topics instead:
-
Connect to SQL Server When System Administrators Are Locked Out
-
Connect to a Registered Server (SQL Server Management Studio)
-
Connect to Any SQL Server Component from SQL Server Management Studio
-
How to Troubleshoot Connecting to the SQL Server Database Engine
Programmers may be interested in the following topics:
The main body of this topic starts here.
This topic describes how to configure the remote access server configuration option in [!INCLUDEssCurrent] by using [!INCLUDEssManStudioFull] or [!INCLUDEtsql]. The remote access option controls the execution of stored procedures from local or remote servers on which instances of [!INCLUDEssNoVersion] are running. This default value for this option is 1. 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.
Important
[!INCLUDEssNoteDepNextDontUse] Use sp_addlinkedserver instead.
In This Topic
-
Before you begin:
-
To configure the remote access option, using:
-
Follow Up: After you configure the remote access option
- The remote access option only applies to servers that are added by using sp_addserver, and is included for backward compatibility.
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.
-
In Object Explorer, right-click a server and select Properties.
-
Click the Connections node.
-
Under Remote server connections, select or clear the Allow remote connections to this server check box.
-
Connect to the [!INCLUDEssDE].
-
From the Standard bar, click New Query.
-
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 accessoption to0.
EXEC sp_configure 'remote access', 0 ;
GO
RECONFIGURE ;
GO
For more information, see Server Configuration Options (SQL Server).
This setting does not take effect until you restart SQL Server.
RECONFIGURE (Transact-SQL)
Server Configuration Options (SQL Server)
sp_configure (Transact-SQL)