title | description | author | ms.author | ms.date | ms.service | ms.subservice | ms.topic | helpviewer_keywords | |
---|---|---|---|---|---|---|---|---|---|
Configure the remote login timeout (server configuration option) |
Learn about the remote login timeout option. See how it limits the number of seconds that SQL Server allots for connecting to a remote server. |
rwestMSFT |
randolphwest |
03/02/2017 |
sql |
configuration |
conceptual |
|
[!INCLUDE SQL Server]
This topic describes how to configure the remote login timeout server configuration option in [!INCLUDEssnoversion] by using [!INCLUDEssManStudioFull] or [!INCLUDEtsql]. The remote login timeout option specifies the number of seconds to wait before returning from a failed attempt to log in to a remote server. For example, if you are trying to log in to a remote server and that server is down, remote login timeout helps make sure that you do not have to wait indefinitely before your computer stops trying to log in. The default value for this option is 10 seconds. A value of 0 allows for an infinite wait.
Note
The default value for this option is 20 seconds in [!INCLUDEsql2008-md].
In This Topic
-
Before you begin:
-
To configure the remote login timeout option, using:
-
Follow Up: After you configure the remote login timeout option
- The remote login timeout option affects connections to OLE DB providers made for heterogeneous queries.
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 Advanced node.
-
Under Network, select a value for the Remote Login Timeout box.
Use the remote login timeout option to specify the number of seconds to wait before returning from a failed remote login attempt.
-
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 login timeout
option to35
seconds.
USE AdventureWorks2022;
GO
EXEC sp_configure 'remote login timeout', 35 ;
GO
RECONFIGURE ;
GO
For more information, see Server Configuration Options (SQL Server).
The setting takes effect immediately without restarting the server.
RECONFIGURE (Transact-SQL)
Server Configuration Options (SQL Server)
sp_configure (Transact-SQL)