<?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 Using DBQuery to update DB table data in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Using-DBQuery-to-update-DB-table-data/m-p/158403#M10539</link>
    <description>&lt;P&gt;I am using the "dbquery" command to update tables in MSSQL 2008. &lt;/P&gt;

&lt;P&gt;The search is something like:&lt;/P&gt;

&lt;P&gt;| dbquery test_db "UPDATE test_table1, test_table2 SET Data1='test1', Data2='test2', Status='Closed' WHERE AccountNumber='1234567890988'"&lt;/P&gt;

&lt;P&gt;The inline search updates the database as expected. However the search provides no results which I can use to tell the user if it succeded or not.&lt;/P&gt;

&lt;P&gt;The Job inspector shows a message... Update statement executed. 1 rows affected. Is it possible to display this message as a search result?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 18:26:43 GMT</pubDate>
    <dc:creator>kenchisho</dc:creator>
    <dc:date>2020-09-28T18:26:43Z</dc:date>
    <item>
      <title>Using DBQuery to update DB table data</title>
      <link>https://community.splunk.com/t5/Reporting/Using-DBQuery-to-update-DB-table-data/m-p/158403#M10539</link>
      <description>&lt;P&gt;I am using the "dbquery" command to update tables in MSSQL 2008. &lt;/P&gt;

&lt;P&gt;The search is something like:&lt;/P&gt;

&lt;P&gt;| dbquery test_db "UPDATE test_table1, test_table2 SET Data1='test1', Data2='test2', Status='Closed' WHERE AccountNumber='1234567890988'"&lt;/P&gt;

&lt;P&gt;The inline search updates the database as expected. However the search provides no results which I can use to tell the user if it succeded or not.&lt;/P&gt;

&lt;P&gt;The Job inspector shows a message... Update statement executed. 1 rows affected. Is it possible to display this message as a search result?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:26:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Using-DBQuery-to-update-DB-table-data/m-p/158403#M10539</guid>
      <dc:creator>kenchisho</dc:creator>
      <dc:date>2020-09-28T18:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: Using DBQuery to update DB table data</title>
      <link>https://community.splunk.com/t5/Reporting/Using-DBQuery-to-update-DB-table-data/m-p/158404#M10540</link>
      <description>&lt;P&gt;add select command  after  update like  "select Data1, Data2, Status from test_table1, test_table2 where  Status='Closed' and  Data2='test2' and  Data1='test1'  "&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:27:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Using-DBQuery-to-update-DB-table-data/m-p/158404#M10540</guid>
      <dc:creator>tachifelix</dc:creator>
      <dc:date>2020-09-28T18:27:32Z</dc:date>
    </item>
  </channel>
</rss>

