Synapse Serverless SQL request keeps running forever when using pyodbc connection

Feng, QingTang 20 Reputation points
2024-05-15T09:14:24.3433333+00:00

Synapse Serverless SQL request keeps running forever when I try to connect its database through pyodbc connection and make the request 'Create Schema XXX' remotely.

There is no option available to stop or abort the process through the synapse workspace.

I have no choice but delete the entire synapse workspace and recreate. Is there any solution to solve this issue?

Please help

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,060 questions
0 comments No comments
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA 90,266 Reputation points
    2024-05-15T10:30:22.07+00:00

    @Feng, QingTang - Thanks for the question and using MS Q&A platform.

    Unfortunately, there is no way to stop/restart the on-demand "Builtin" sql pool for these types of situations.

    If you have a long-running query or process that you want to cancel or abort in Synapse Serverless SQL pool, you can use the "Cancel Query" feature in the Synapse Studio. Here are the steps to do so:

    1. Open the Synapse Studio and navigate to the "SQL scripts" tab.
    2. Find the query or process that you want to cancel in the "Recent scripts" or "Recent queries" section.
    3. Click on the query or process to open it.
    4. Click on the "Cancel Query" button in the toolbar at the top of the screen.
    5. Confirm that you want to cancel the query or process by clicking "Yes" in the confirmation dialog box.

    Note that the "Cancel Query" feature is only available for queries or processes that are currently running. If the query or process has already completed, the "Cancel Query" button will be disabled.

    For more details, refer to How to cancel a synapse on-demand query? which addressing similar issue.

    And also, check to see if you have any running sql request which you are running on Serverless sql pool from monitoring page as shown.

    User's image

    For more details, refer to Monitoring Synapse serverless SQL pool query history

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.