<?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 Re: Can DB Connect Run Multiple Queries At Once? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-DB-Connect-Run-Multiple-Queries-At-Once/m-p/72488#M180961</link>
    <description>&lt;P&gt;that's my advice as well -- something really long and complex should be written with native syntax highlighting and without worrying about escaping special characters.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jan 2014 22:53:47 GMT</pubDate>
    <dc:creator>jcoates_splunk</dc:creator>
    <dc:date>2014-01-27T22:53:47Z</dc:date>
    <item>
      <title>Can DB Connect Run Multiple Queries At Once?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-DB-Connect-Run-Multiple-Queries-At-Once/m-p/72485#M180958</link>
      <description>&lt;P&gt;I'm trying to run a few complex queries in order to render a single output using DB Connect.&lt;/P&gt;

&lt;P&gt;I cannot seem to get them all to run together on one line as if I were at the mysql console.&lt;/P&gt;

&lt;P&gt;Query Example (won't go into detail, just the basic structure):&lt;/P&gt;

&lt;P&gt;DROP....DROP....DROP....SELECT ... FROM ... WHERE... GROUP...;&lt;BR /&gt;
CREATE TEMPORARY TABLE.....;&lt;BR /&gt;
INSERT INTO... SELECT... INNER JOIN... LEFT JOIN...;&lt;BR /&gt;
INSERT INTO... SELECT... INNER JOIN... LEFT JOIN...;&lt;BR /&gt;
INSERT INTO... SELECT... INNER JOIN... LEFT JOIN...;&lt;BR /&gt;
CREATE TEMPORARY TABLE.....;&lt;BR /&gt;
DROP TABLE...;&lt;BR /&gt;
DROP TABLE...;&lt;BR /&gt;
SELECT....;&lt;/P&gt;

&lt;P&gt;So we have 9 statements here, the total number and the structure of each doesn't really matter because they work just fine individually, just not together as one big query. They produce the desired output in the mysql console and through several other methods.&lt;/P&gt;

&lt;P&gt;Can Splunk DB Connect execute multiple queries as one?&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2013 18:06:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-DB-Connect-Run-Multiple-Queries-At-Once/m-p/72485#M180958</guid>
      <dc:creator>proitllc</dc:creator>
      <dc:date>2013-06-23T18:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Can DB Connect Run Multiple Queries At Once?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-DB-Connect-Run-Multiple-Queries-At-Once/m-p/72486#M180959</link>
      <description>&lt;P&gt;Have you tried creating the query at the database and naming it, and then querying the name from DB Connect?&lt;BR /&gt;&lt;BR /&gt;
I know it is an extra step, but that is how we worked around it.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2013 20:58:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-DB-Connect-Run-Multiple-Queries-At-Once/m-p/72486#M180959</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-07-31T20:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can DB Connect Run Multiple Queries At Once?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-DB-Connect-Run-Multiple-Queries-At-Once/m-p/72487#M180960</link>
      <description>&lt;P&gt;Im going to try it with the map command. You can probably use an inputlookup with map command to accomplish what you want. &lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2013 03:03:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-DB-Connect-Run-Multiple-Queries-At-Once/m-p/72487#M180960</guid>
      <dc:creator>BP9906</dc:creator>
      <dc:date>2013-12-10T03:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can DB Connect Run Multiple Queries At Once?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-DB-Connect-Run-Multiple-Queries-At-Once/m-p/72488#M180961</link>
      <description>&lt;P&gt;that's my advice as well -- something really long and complex should be written with native syntax highlighting and without worrying about escaping special characters.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2014 22:53:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-DB-Connect-Run-Multiple-Queries-At-Once/m-p/72488#M180961</guid>
      <dc:creator>jcoates_splunk</dc:creator>
      <dc:date>2014-01-27T22:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can DB Connect Run Multiple Queries At Once?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-DB-Connect-Run-Multiple-Queries-At-Once/m-p/72489#M180962</link>
      <description>&lt;P&gt;This looks like a good job for a stored procedure to me.  That is, of course, if DB connect can call a stored procedure.  Let the procedure encapsulate the logic above.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2014 01:18:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-DB-Connect-Run-Multiple-Queries-At-Once/m-p/72489#M180962</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2014-01-28T01:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can DB Connect Run Multiple Queries At Once?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-DB-Connect-Run-Multiple-Queries-At-Once/m-p/72490#M180963</link>
      <description>&lt;P&gt;it can run stored procedures if you can call them from SQL. IOW, dbquery my_database "execute my_stored_procedure" works.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:44:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-DB-Connect-Run-Multiple-Queries-At-Once/m-p/72490#M180963</guid>
      <dc:creator>jcoates_splunk</dc:creator>
      <dc:date>2020-09-28T15:44:07Z</dc:date>
    </item>
  </channel>
</rss>

