Introduction
Sometimes a query in Synapse serverless SQL doesn’t work as expected and times out, or worse. It may happen that it gets stuck entirely. Luckily, there is a way to get things going again! Here’s how.
In your favorite SQL tool, run the following query to identify the process ID
of the stuck query:
SQL snippet
|
|
Killing the process
Using your obtained process ID
(in this example it will be 81
), run the following SQL to kill the process:
|
|
Be warned, this might take a while. If everything went well, you will have things moving again.
What if this doesn’t work?
It could be that things are unable to get started again. In that case, you will have one more trick in the book: Azure support. If you open a ticket with them, they can restart your SQL serverless pool.