forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Reviewed-by: Jiang, Beibei <beibei.jiang@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
23 lines
4.2 KiB
HTML
23 lines
4.2 KiB
HTML
<a name="EN-US_TOPIC_0000001188681012"></a><a name="EN-US_TOPIC_0000001188681012"></a>
|
|
|
|
<h1 class="topictitle1">Canceling the Execution of SQL Queries</h1>
|
|
<div id="body32001227"><p id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_p9315740">Data Studio allows you to cancel the execution of an SQL query being executed in the <strong id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_b28379272123549">SQL Terminal</strong>.</p>
|
|
<p id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_p16732802">Follow the steps to cancel execution of an SQL query:</p>
|
|
<ol id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_ol5451022114445"><li id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_li2082994214445"><span>Execute the SQL query in the <strong id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_b4760294419547">SQL Terminal</strong>.</span></li><li id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_li2302354214454"><span>Click <span><img id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_image2577331219547" src="figure/en-us_image_0000001188202730.jpg"></span> in the <strong id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_b3063321919547">SQL Terminal </strong>or press <strong id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_b36642856193615">Shift</strong>+<strong id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_b6509260193619">Esc</strong>.</span><p><p id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_p2849279914524">Alternatively, you can choose <strong id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_b12066412133444">Run > Cancel</strong> from the main menu or right-click <strong id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_b6061730919547">SQL Terminal</strong> and select <strong id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_b23579154133458">Cancel</strong>, or select <strong id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_b13749184831211">Cancel</strong> from <strong id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_b1095623991116">Progress View</strong> tab.</p>
|
|
</p></li></ol>
|
|
<p id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_p21666058164121">When you cancel the query, the execution stops at the currently executing SQL statement.</p>
|
|
<p id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_p11449343">Database changes made by the canceled query are rolled back and the queries following the canceled query are not executed.</p>
|
|
<p id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_p35935224">A query cannot be canceled and the <strong id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_b44193707192534">Result</strong> tab shows the result when:</p>
|
|
<ol id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_ol54981566"><li id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_li19880414">The server has finished execution of the query and is preparing the result.</li><li id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_li44706003">The result of the executed query is being transferred from the server to the Data Studio client.</li></ol>
|
|
<p id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_p25072049">A query cannot be canceled while viewing the query <strong id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_b57655020195446">Execution Plan</strong>. For more details, refer to <a href="DWS_DS_126.html">Viewing the Query Execution Plan and Cost</a>.</p>
|
|
<p id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_p24321850">The <strong id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_b1923153621316">Messages</strong> tab shows the query cancelation message.</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_note4958898417379"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_p50509875">The <strong id="EN-US_TOPIC_0000001188681012__en-us_topic_0185265031_b29019362133732">Cancel</strong> button is enabled only during query execution.</p>
|
|
</div></div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="DWS_DS_118.html">SQL Terminal</a></div>
|
|
</div>
|
|
</div>
|
|
|