Terminating an Ongoing SQL Query
You can terminate an ongoing SQL query on the SQL Terminal tab page of Data Studio.
To terminate an ongoing SQL query, perform the following steps:
- Execute a SQL query on the SQL Terminal tab page.
- Click or press Shift+Esc.
You can also choose Run > Cancel, or right-click in the code area and choose Cancel, or click Cancel on the Progress View tab page.
After you terminate an ongoing query, the SQL statement being executed is stopped.
Database changes made by the canceled query are rolled back and the following queries will not be executed.
A query cannot be canceled and the Result tab displays the result when:
- The query has been executed and the result is being generated.
- The result of the executed query is being transferred from the server to the Data Studio client.
A query cannot be canceled when you are viewing the execution plan of a query. For details, see Viewing the Execution Plan and Costs.
The Messages tab displays a message indicating that the query has been cancelled.
The Cancel option is enabled only when a query is being executed.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot