<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to cancel |dbxquery sql query? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-cancel-dbxquery-sql-query/m-p/554792#M157467</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are using Splunk DB Connect on search heads to run "|dbxquery" command with SQL queries to Snowflake DB.&lt;/P&gt;&lt;P&gt;Sometimes user , who is&amp;nbsp; running one of the queries, &amp;nbsp;realizes,&amp;nbsp; that a query &amp;nbsp;would return a&amp;nbsp; lot of data&amp;nbsp;and cancels&amp;nbsp; the search by clicking on "Stop" on Splunk GUI, but on Snowflake DB the query is still being executed.&lt;BR /&gt;&lt;BR /&gt;Anybody knows how to Cancel the search initiated via Splunk GUI with |dbxquery command?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jun 2021 23:27:18 GMT</pubDate>
    <dc:creator>mlevsh</dc:creator>
    <dc:date>2021-06-07T23:27:18Z</dc:date>
    <item>
      <title>How to cancel |dbxquery sql query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-cancel-dbxquery-sql-query/m-p/554792#M157467</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are using Splunk DB Connect on search heads to run "|dbxquery" command with SQL queries to Snowflake DB.&lt;/P&gt;&lt;P&gt;Sometimes user , who is&amp;nbsp; running one of the queries, &amp;nbsp;realizes,&amp;nbsp; that a query &amp;nbsp;would return a&amp;nbsp; lot of data&amp;nbsp;and cancels&amp;nbsp; the search by clicking on "Stop" on Splunk GUI, but on Snowflake DB the query is still being executed.&lt;BR /&gt;&lt;BR /&gt;Anybody knows how to Cancel the search initiated via Splunk GUI with |dbxquery command?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 23:27:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-cancel-dbxquery-sql-query/m-p/554792#M157467</guid>
      <dc:creator>mlevsh</dc:creator>
      <dc:date>2021-06-07T23:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to cancel |dbxquery sql query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-cancel-dbxquery-sql-query/m-p/554797#M157470</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184259"&gt;@mlevsh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There was no mention of documents about cancel the query on DB. Splunk DBConnect uses JDBC driver which has cancel operation however it should be supported by both DBMS &amp;amp; driver that you are using it inside DBConnect.&amp;nbsp; Try timeout= option in dbxquery command to avoid it running for long time.&lt;/P&gt;&lt;P&gt;Refer-&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/10947303/stop-or-terminate-long-running-query-in-jdbc" target="_blank"&gt;java - Stop or terminate long running query in JDBC - Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-----------------------------&lt;/P&gt;&lt;P&gt;An upvote would be appreciated if it helps!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 01:01:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-cancel-dbxquery-sql-query/m-p/554797#M157470</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-06-08T01:01:34Z</dc:date>
    </item>
  </channel>
</rss>

