SQL Server Error 590: RPC Aborted Without Execution
In this article
SQL Server error 590 ("RPC was aborted without execution") means a remote procedure call reached SQL Server but was cancelled before it ran. In practice the most common causes are a client-side command timeout, a cancelled query, or a dropped connection between the client and the server. The fix is almost always to find out who or what cancelled the call, then adjust the timeout or the query rather than changing anything on the server itself. This guide walks through the checks in order, from the simplest to the most involved.
What You'll Need
- Access to SQL Server Management Studio (SSMS) or another client that can run queries against the instance.
- Permission to view the SQL Server error log and, ideally, the Windows Event Viewer on the server.
- The name of the application, report, job, or query that produced the error, plus roughly when it happened.
- Contact details for the application owner or developer if the call comes from a custom app.
Step-by-Step
- Confirm the exact error and context. Note whether error 590 appears in the application, in an SSMS message tab, in a SQL Server Agent job history, or in the SQL Server error log. The surrounding messages usually name the procedure or command that was aborted and the login that ran it.
- Check the SQL Server error log for the same timestamp. In SSMS, expand the instance, then Management, then SQL Server Logs, and open the current log. Look for entries at or just before the failure time, including any "timeout" or "attention" messages. Labels in Object Explorer can differ slightly between SSMS versions.
- Check the Windows Event Viewer on the server. Open Event Viewer and look under Windows Logs > Application for SQL Server entries around the same time. Network resets, service restarts, and memory pressure often show up here before they surface as error 590.
- Identify the client timeout. If the call comes from an application, ask the developer what command timeout it uses. Many drivers default to 30 seconds; a query that runs longer will be cancelled by the client, and SQL Server reports that cancellation as error 590. The same applies to SSMS, where the timeout is set in the connection or query options.
- Reproduce the call manually. Run the same stored procedure or query in SSMS with a generous timeout and time it. If it completes but takes longer than the client's timeout, you have found the cause. If it fails the same way in SSMS, move on to the next step.
- Look for blocking and long-running work. While the query runs, check for sessions waiting on locks or doing heavy scans. A query that is blocked for minutes will be cancelled by the client even though SQL Server itself is healthy. Reducing blocking or tuning the query usually removes the error.
- Check for cancellations by a person or a job. Someone pressing Cancel in SSMS, a SQL Server Agent job being stopped, or an application shutting down mid-call all abort the RPC. Compare the failure time with job schedules and with anyone who was working on the server.
- Rule out connectivity problems. If the client and server are on different networks, a firewall, VPN, or load balancer that drops idle connections can abort the call. Test from a client on the same subnet and compare results.
- Apply the appropriate fix. If it is a timeout, raise the client's command timeout or make the query faster. If it is blocking, address the blocking session. If it is a dropped connection, fix the network path. Only after those checks should you look at server configuration.
- Verify the fix. Run the original call through the original application, not just in SSMS, and confirm it completes without error 590 over several attempts.
Common Mistakes
- Restarting SQL Server first. A restart clears the evidence and rarely fixes a client-side timeout.
- Assuming the error is a server bug. Error 590 is usually a symptom of a cancelled call, not a fault in SQL Server.
- Raising the timeout without checking whether the query is blocked. A longer timeout just makes users wait longer for the same failure.
- Ignoring the application layer. The client that issued the RPC decides when to give up, and that setting is often outside SQL Server.
- Changing server memory or parallelism settings before confirming the cause, which can introduce new problems.
Tips
- Record the exact time of the failure. Correlating the application log, SQL Server error log, and Event Viewer by timestamp is the fastest way to find the cause.
- Ask the application owner for the connection string and command timeout before you touch the server.
- For scheduled jobs, check the job history first; a stopped job produces the same error as a client timeout.
- Keep a note of which queries are known to run long, so a timeout is recognised quickly next time.
Troubleshooting
If the error persists after the timeout and blocking checks, work through these in order:
- Test the same call from a different client machine on the same network. If it succeeds there, the problem is the original client's network path or configuration.
- Check whether the SQL Server service restarted unexpectedly around the failure time; a restart aborts all in-flight RPCs.
- Review the application's own logs for a cancellation, shutdown, or reconnect event at the same moment.
- If the call is made by a linked server or a distributed query, check the remote server's availability and the linked server settings.
- As a last resort, capture a trace or Extended Events session around the failure to see which session issued the cancel. Do this only with help from someone familiar with the instance, and remove the session afterwards.
Frequently Asked Questions
Is error 590 caused by SQL Server itself?
Usually not. It reports that a call was aborted before execution, and the abort most often comes from the client, a cancellation, or a dropped connection.
Does raising the timeout always fix it?
No. It helps only when the call was cancelled because it ran longer than the client allowed. If the cause is blocking or a network drop, the error will return.
Can error 590 appear in SQL Server Agent jobs?
Yes. A job that is stopped, or whose step times out, can produce the same message. Check the job history for the step that failed.
Will restarting SQL Server help?
It clears in-flight calls but does not address the cause, and it wipes useful diagnostic evidence. Try the checks above first.
Where can I see which login issued the aborted call?
The SQL Server error log and the application's own log usually record the login and the procedure name. Start there.