<?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: How to setup  multiple SQL statements in a single DB Connection input in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-setup-multiple-SQL-statements-in-a-single-DB-Connection/m-p/288220#M161669</link>
    <description>&lt;P&gt;I do not believe the underlying JDBC statement will allow this but happy to be proven wrong here !&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2017 00:00:52 GMT</pubDate>
    <dc:creator>gjanders</dc:creator>
    <dc:date>2017-03-27T00:00:52Z</dc:date>
    <item>
      <title>How to setup  multiple SQL statements in a single DB Connection input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-setup-multiple-SQL-statements-in-a-single-DB-Connection/m-p/288217#M161666</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;

&lt;P&gt;I am creating DB inputs in the Splunk DB Connector 3.0.2. I would like to run 2 sql statements or possibly more in some instances . When I use a semi column to separate in the Choose and Preview with the editor version sql I get &lt;/P&gt;

&lt;P&gt;Invalid Query&lt;BR /&gt;
java.sql.SQLSyntaxErrorException: ORA-00922: missing or invalid option&lt;/P&gt;

&lt;P&gt;Here is an example:&lt;/P&gt;

&lt;P&gt;alter session set current_schema=test;&lt;BR /&gt;
select &lt;BR /&gt;
  column1 &lt;BR /&gt;
from &lt;BR /&gt;
  test_table&lt;/P&gt;

&lt;P&gt;Any help appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:21:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-setup-multiple-SQL-statements-in-a-single-DB-Connection/m-p/288217#M161666</guid>
      <dc:creator>tpirozzi</dc:creator>
      <dc:date>2020-09-29T13:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup  multiple SQL statements in a single DB Connection input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-setup-multiple-SQL-statements-in-a-single-DB-Connection/m-p/288218#M161667</link>
      <description>&lt;P&gt;In your example why not just use:&lt;BR /&gt;
    select&lt;BR /&gt;
    column1&lt;BR /&gt;
    from&lt;BR /&gt;
    test.test_table&lt;/P&gt;

&lt;P&gt;Some databases might allow multiple queries via JDBC statements (where JDBC statements are what the DB input is really running) but by default most will not.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2017 23:41:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-setup-multiple-SQL-statements-in-a-single-DB-Connection/m-p/288218#M161667</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2017-03-25T23:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup  multiple SQL statements in a single DB Connection input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-setup-multiple-SQL-statements-in-a-single-DB-Connection/m-p/288219#M161668</link>
      <description>&lt;P&gt;Thanks. That is what I have done so maybe this is a bad example. I guess the ultimate question is does it support multiple sql statements or do I have to combine into one?  I have looked for the answer but did not find anything in the docs.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Mar 2017 09:27:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-setup-multiple-SQL-statements-in-a-single-DB-Connection/m-p/288219#M161668</guid>
      <dc:creator>tpirozzi</dc:creator>
      <dc:date>2017-03-26T09:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup  multiple SQL statements in a single DB Connection input</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-setup-multiple-SQL-statements-in-a-single-DB-Connection/m-p/288220#M161669</link>
      <description>&lt;P&gt;I do not believe the underlying JDBC statement will allow this but happy to be proven wrong here !&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 00:00:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-setup-multiple-SQL-statements-in-a-single-DB-Connection/m-p/288220#M161669</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2017-03-27T00:00:52Z</dc:date>
    </item>
  </channel>
</rss>

