Configure the remote access Server Configuration Option

THIS TOPIC APPLIES TO:yesSQL Server (starting with 2008)noAzure SQL DatabasenoAzure SQL Data Warehouse noParallel Data Warehouse

This topic is about the "Remote Access" feature. This configuration option is an obscure SQL Server to SQL Server 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 SQL Server, see one of the following topics instead:

Important

This feature will be removed in the next version of Microsoft SQL Server. Do not use this feature in new development work, and modify applications that currently use this feature as soon as possible. Use sp_addlinkedserver instead.
When remote access is not enabled, execution of a stored procedure on a linked server, fails when using four part naming, such as the syntax EXEC SQL01.TestDB.dbo.proc_test;. Use EXECUTE ... AT syntax instead, such as EXEC(N'TestDB.dbo.proc_test') AT [SQL01];.

In This Topic

Before You Begin

Limitations and Restrictions

  • The remote access option only applies to servers that are added by using sp_addserver, and is included for backward compatibility.

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

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

  2. Click 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 Database Engine.

  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 access option to 0.

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

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

Follow Up: After you configure the remote access option

This setting does not take effect until you restart SQL Server.

See Also

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