SQL Server Error 1428: Fix the Remote Query Timeout
In this article
SQL Server error 1428 means a remote query is being refused because the remote query timeout has been exceeded. The fix is to raise or disable the remote query timeout on the server that initiates the query, then confirm the remote server is reachable and responsive. You can do this in SQL Server Management Studio (SSMS) under Server Properties > Connections, or with the T-SQL command sp_configure 'remote query timeout'. The change takes effect immediately for new connections.
What You'll Need
- SQL Server Management Studio (SSMS) or another client that can run T-SQL, such as Azure Data Studio or sqlcmd.
- Membership in the
sysadminfixed server role, or at least theALTER SETTINGSpermission, to change server configuration options. - Network access to the remote SQL Server instance, and the name or IP address of that instance.
- The ability to run a simple test query against the remote server, such as
SELECT 1.
Step-by-Step
- Confirm the error is 1428 and not a different timeout. Error 1428 reads: "The request is refused because the responding ..." and typically includes the phrase "remote query timeout." Check the full message in SSMS or the SQL Server error log. If the message mentions a login timeout or a connection timeout instead, you are dealing with a different problem and the steps below may not apply.
- Test basic connectivity to the remote server. From the machine running the query, open a command prompt and run
ping <remote-server>andtelnet <remote-server> 1433(or the port your instance uses). If ping or telnet fails, fix the network path first: firewall rules, VPN, DNS resolution, or the SQL Server Browser service for named instances. Error 1428 can appear when the remote server is simply unreachable for longer than the timeout allows. - Run a minimal remote query. In SSMS, connect to the initiating server and run a linked-server query such as
SELECT 1 FROM OPENQUERY(LinkedServerName, 'SELECT 1')or a four-part name query likeSELECT TOP 1 * FROM LinkedServerName.DatabaseName.dbo.SomeTable. If this succeeds quickly, the timeout is too low for your normal workload. If it also times out, the remote server or the query itself is the problem. - Check the current remote query timeout setting. In SSMS, right-click the server in Object Explorer, choose Properties, then Connections. The Remote query timeout value is shown in seconds; 0 means no timeout. Alternatively, run
sp_configure 'remote query timeout';and look atconfig_valueandrun_value. Note that menu labels can differ slightly by SSMS version, device, or region. - Raise the timeout or set it to 0. In the Connections page, enter a larger number of seconds (for example, 600 for ten minutes) or 0 to disable the timeout, then click OK. With T-SQL, run
EXEC sp_configure 'remote query timeout', 600; RECONFIGURE;and thenRECONFIGURE WITH OVERRIDE;if needed. The setting applies to new connections; existing connections may need to be reopened. - Verify the change. Run
sp_configure 'remote query timeout';again and confirmrun_valuematches your new setting. Then rerun the test query from step 3 and confirm it completes without error 1428. - If the timeout still triggers, investigate the remote query itself. A slow remote query will eventually exceed any timeout. Check the remote server's performance: missing indexes, blocking, long-running transactions, or a query that returns a very large result set over the linked server. Tune the query or add indexes on the remote side rather than simply raising the timeout again.
- Review linked server settings if you use linked servers. In SSMS, expand Server Objects > Linked Servers, right-click the linked server, and choose Properties. On the Server Options page, check the Remote Query Timeout setting for that linked server, which can override the server-level default. Set it to a suitable value or 0 to inherit no timeout.
Common Mistakes
- Changing the timeout on the wrong server. The remote query timeout is set on the server that initiates the query, not on the remote server. Changing it on the remote server has no effect on error 1428.
- Setting the timeout to 0 without understanding the risk. A value of 0 disables the timeout, so a hung remote query can tie up a connection indefinitely. Use a large finite value unless you have a specific reason to disable it.
- Forgetting to run RECONFIGURE. With
sp_configure, the new value is not active until you runRECONFIGURE. Theconfig_valueandrun_valuecolumns will differ until you do. - Ignoring network latency. A remote server across a slow WAN link may need a much higher timeout than one on the same LAN. Test with a simple query first to separate network delay from query slowness.
- Assuming the error is always a timeout. Error 1428 can also appear when the remote server refuses the request for other reasons, such as the remote query timeout being reached during connection establishment. Always read the full error text.
Tips
- Use a finite timeout that is comfortably longer than your slowest expected remote query, rather than disabling the timeout entirely.
- Test changes on a development or staging server before applying them to production.
- Document the original timeout value so you can revert if performance or reliability worsens.
- If you use linked servers heavily, review the linked server's own Remote Query Timeout setting, because it can override the server default.
- Keep an eye on the SQL Server error log after the change; repeated 1428 errors suggest the remote server is overloaded or the network path is unstable.
Troubleshooting
If raising the timeout does not stop error 1428, work through these checks in order:
- Verify the remote server is online. Connect to it directly with SSMS or sqlcmd. If you cannot connect, resolve the remote server's availability first.
- Check firewall and port rules. Ensure the port used by the remote instance (default 1433 for the default instance) is open between the two servers. For named instances, confirm the SQL Server Browser service is running and UDP port 1434 is reachable.
- Test with a trivial query. Run
SELECT 1through the linked server or four-part name. If that times out, the issue is connectivity or authentication, not query performance. - Review the remote server's workload. Look for blocking, long-running transactions, or high CPU on the remote instance. A remote query that waits on a lock will hit the timeout even if the network is fine.
- Check the linked server security context. If the linked server uses a specific login, confirm that login has permission on the remote objects. Permission errors usually produce a different message, but a login that cannot authenticate can cause delays that look like timeouts.
- Restart the SQL Server service on the initiating server only if safe to do so. A restart clears cached connection state, but it interrupts all current connections. Warn users and schedule it appropriately.
Frequently Asked Questions
What does SQL Server error 1428 mean exactly?
It means a remote query was refused because the remote query timeout was exceeded. The initiating server waited longer than the configured timeout for the remote server to respond.
Where is the remote query timeout configured?
On the server that runs the query, under Server Properties > Connections in SSMS, or via sp_configure 'remote query timeout'. Linked servers can also have their own Remote Query Timeout setting.
Does setting the timeout to 0 disable it?
Yes. A value of 0 means no timeout, so the query waits indefinitely. Use this cautiously because a hung query can hold resources for a long time.
Why does error 1428 appear only sometimes?
Intermittent errors usually mean the remote query sometimes exceeds the timeout due to variable network latency, blocking, or server load. Check the remote server's performance during the failures.
Can error 1428 be caused by a firewall?
Indirectly, yes. If a firewall drops packets, the connection attempt can hang until the timeout expires, producing a timeout-related error. Test basic connectivity with ping and telnet first.
Do I need to restart SQL Server after changing the timeout?
No. The setting takes effect for new connections after you run RECONFIGURE or click OK in the Properties dialog. Existing connections may keep the old value until they are reopened.