<?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: Execute stored procedure with parameters using datainputs in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Execute-stored-procedure-with-parameters-using-datainputs/m-p/341340#M166042</link>
    <description>&lt;P&gt;I would expect that to be an issue with the stored procedure itself.  &lt;/P&gt;

&lt;P&gt;In this case, several sites show this happening to different tools and applications, and the answer is usually "Update the stored procedure to &lt;CODE&gt;SET NOCOUNT ON&lt;/CODE&gt;".  Here are a couple of examples...&lt;/P&gt;

&lt;P&gt;&lt;A href="https://community.jaspersoft.com/wiki/getting-statement-did-not-return-result-set-error-when-using-stored-procedure-access-mssql-data"&gt;https://community.jaspersoft.com/wiki/getting-statement-did-not-return-result-set-error-when-using-stored-procedure-access-mssql-data&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://kb.tableau.com/articles/issue/error-stored-procedure-does-not-return-result-set"&gt;http://kb.tableau.com/articles/issue/error-stored-procedure-does-not-return-result-set&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;There is also a more complete and more complicated answer here, but only go there if you are trying to execute a stored procedure that is SUPPOSED to do something more than return a results set.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://blogs.msdn.microsoft.com/jdbcteam/2008/08/04/sqlserverexception-the-statement-did-not-return-a-result-set/"&gt;https://blogs.msdn.microsoft.com/jdbcteam/2008/08/04/sqlserverexception-the-statement-did-not-return-a-result-set/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Sep 2017 16:19:50 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-09-19T16:19:50Z</dc:date>
    <item>
      <title>Execute stored procedure with parameters using datainputs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Execute-stored-procedure-with-parameters-using-datainputs/m-p/341339#M166041</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I want to execute stored procedure with parameters but it gives me error like "com.microsoft.sqlserver.jdbc.SQLServerException: The statement did not return a result set."&lt;/P&gt;

&lt;P&gt;DB input:&lt;BR /&gt;
exec "StaffDeployment"."dbo"."procedurename" @FROMDATE = '9/14/2017', @TODATE = '9/14/2017 23:59:00', @STEV = '1', @Counter = 5, @FieldPosition = '1,2,3,4'&lt;/P&gt;

&lt;P&gt;Please help me in this.&lt;/P&gt;

&lt;P&gt;Regards&lt;BR /&gt;
Suhail&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 12:28:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Execute-stored-procedure-with-parameters-using-datainputs/m-p/341339#M166041</guid>
      <dc:creator>suhailquadri</dc:creator>
      <dc:date>2017-09-18T12:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Execute stored procedure with parameters using datainputs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Execute-stored-procedure-with-parameters-using-datainputs/m-p/341340#M166042</link>
      <description>&lt;P&gt;I would expect that to be an issue with the stored procedure itself.  &lt;/P&gt;

&lt;P&gt;In this case, several sites show this happening to different tools and applications, and the answer is usually "Update the stored procedure to &lt;CODE&gt;SET NOCOUNT ON&lt;/CODE&gt;".  Here are a couple of examples...&lt;/P&gt;

&lt;P&gt;&lt;A href="https://community.jaspersoft.com/wiki/getting-statement-did-not-return-result-set-error-when-using-stored-procedure-access-mssql-data"&gt;https://community.jaspersoft.com/wiki/getting-statement-did-not-return-result-set-error-when-using-stored-procedure-access-mssql-data&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://kb.tableau.com/articles/issue/error-stored-procedure-does-not-return-result-set"&gt;http://kb.tableau.com/articles/issue/error-stored-procedure-does-not-return-result-set&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;There is also a more complete and more complicated answer here, but only go there if you are trying to execute a stored procedure that is SUPPOSED to do something more than return a results set.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://blogs.msdn.microsoft.com/jdbcteam/2008/08/04/sqlserverexception-the-statement-did-not-return-a-result-set/"&gt;https://blogs.msdn.microsoft.com/jdbcteam/2008/08/04/sqlserverexception-the-statement-did-not-return-a-result-set/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 16:19:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Execute-stored-procedure-with-parameters-using-datainputs/m-p/341340#M166042</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-09-19T16:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Execute stored procedure with parameters using datainputs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Execute-stored-procedure-with-parameters-using-datainputs/m-p/341341#M166043</link>
      <description>&lt;P&gt;Thank you.  I will start on that.  I appreciate all of you help on this and other questions up to this point.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 16:24:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Execute-stored-procedure-with-parameters-using-datainputs/m-p/341341#M166043</guid>
      <dc:creator>zeroCalm</dc:creator>
      <dc:date>2017-09-19T16:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Execute stored procedure with parameters using datainputs</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Execute-stored-procedure-with-parameters-using-datainputs/m-p/341342#M166044</link>
      <description>&lt;P&gt;Did you figure this out?&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 18:24:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Execute-stored-procedure-with-parameters-using-datainputs/m-p/341342#M166044</guid>
      <dc:creator>caseypike</dc:creator>
      <dc:date>2019-05-31T18:24:59Z</dc:date>
    </item>
  </channel>
</rss>

