Configure remote access (server configuration option)
Applies to: SQL Server
This article is about the remote access configuration option, which is a deprecated SQL Server to SQL Server communication feature.
This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
If you reached this page because you're having trouble connecting to SQL Server, see one of the following articles instead:
- Tutorial: Getting Started with the Database Engine
- Logging In to SQL Server
- 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
- Connect to the Database Engine With sqlcmd
- How to Troubleshoot Connecting to the SQL Server Database Engine
Programmers may be interested in the following articles:
- Quickstart: Use .NET Core (C#) to query a database
- Connecting to an Instance of SQL Server
- Add new connections in Visual Studio
Manage remote access
The remote access configuration option controls the execution of stored procedures from local or remote servers on which instances of SQL Server 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
This setting doesn't take effect until you restart SQL Server.
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.
Execute permissions on
sp_configure with no parameters or with only the first parameter are granted to all users by default.
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.
Use SQL Server Management Studio
In Object Explorer, right-click a server and select Properties.
Select the Connections node.
Under Remote server connections, select or clear the Allow remote connections to this server check box.
Connect to the Database Engine.
From the Standard bar, select New Query.
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 accessoption to
EXEC sp_configure 'remote access', 0; GO RECONFIGURE; GO
For more information, see Server configuration options (SQL Server).