How to Increase the MS SQL Remote Query Timeout?

MS SQL Server has an option called Remote Query Timeout to specify the time (in seconds), a remote operation can take before SQL Server times out. Note that, it only applies to an outgoing (not incoming) connection initiated by the Database Engine as a remote query. The default value for this option is 600 seconds, which can be configured either via SQL Server Management Studio or Transact-SQL.


Using SQL Server Management Studio

  1. Connect to MS SQL server via SQL Management Studio.

  2. In Object Explorer, right-click on the server name and then select Properties.

    SQL Server Management Studio

  3. In the new tab, click on Connections node.

  4. In Remote Query Timeout change it to your desired value or specify 0 to set no limit.

    Connections

  5. Click on OK to save the changes.

Using Transact-SQL

  1. Connect to MS SQL server via SQL Management Studio.

  2. From the Standard bar, click on New Query.

  3. Run the below query to set the Remote Query Timeout to 0 seconds ( 0 is unlimited). Similarly, you can replace 0 with your desired value (default is 600 seconds).

    EXEC SP_CONFIGURE 'remote query timeout', 0
    reconfigure
    EXEC sp_configure
  4. Click Execute.

→ Looking to change the MSSQL database port? Please refer to change MSSQL port for more details?

Related Articles

How to Fix Error "Could not allocate space for object 'X' in database"?

Error Message Could not allocate space for object 'dbo.ABC_XYZ_XYZ'.'AB__ABC_XYZ__XYZ' in...

How to fix “Reporting Services Catalog Database File Existence” error while installing SQL Server?

You may receive the below error while installing the SQL server on your windows system. This...

How to upgrade SQL Enterprise Evaluation edition to SQL Developer edition?

If you have installed the MSSQL Evaluation edition, you can easily upgrade it to the Developer...

How to install SQL Server Reporting Service (SSRS) on MSSQL 2014 Express Edition?

SQL Server Reporting Services is used for creating, publishing, and managing reports, and...

How to Verify MSSQL Server Edition?

Please refer to the following steps to verify the exact MSSQL edition. We have prepared these...

  • 2 Users Found This Useful

Was this answer helpful?