<?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: Executing multiple SQL statements in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Executing-multiple-SQL-statements/m-p/72931#M25536</link>
    <description>Hi Alex,&lt;BR /&gt;&lt;BR /&gt;I am assuming that although there are mulitple statements, only one of them return data. If this is the case, i recommend using SET NOCOUNT ON in the begining of the query. This will ensure that the OBDC connection waits till the very end for the results to come back.&lt;BR /&gt;&lt;BR /&gt;On the other hand if you have multiple results, then i dont think ODBC can support that. Eitherway, your SQL VBO will only expect one type of data and hence there wont be a way to bind multiple result sets to the return data item&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Bimal Sebastian&lt;BR /&gt;Consultant&lt;BR /&gt;Blueprism&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Tue, 06 Oct 2020 08:46:00 GMT</pubDate>
    <dc:creator>BimalSebastian</dc:creator>
    <dc:date>2020-10-06T08:46:00Z</dc:date>
    <item>
      <title>Executing multiple SQL statements</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Executing-multiple-SQL-statements/m-p/72930#M25535</link>
      <description>Hello there

I'm trying to get Blue Prism to execute a single SQL query that has multiple statements in it, via the ODBC business object. I get an error message saying I need to end the transaction after each DDL statement, so I'm presuming if I split the query up and execute each statement individually, it will work.

This will take me some time and understandably I want to solve this in the quickest way possible! Has anyone experienced anything like this before? Is there a way I can execute multiple statements in a single execution? I've googled the issue and found a few possible workarounds, but they haven't worked......

Thanks

Alex</description>
      <pubDate>Fri, 20 Jun 2014 19:40:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Executing-multiple-SQL-statements/m-p/72930#M25535</guid>
      <dc:creator>AlexHowarth</dc:creator>
      <dc:date>2014-06-20T19:40:00Z</dc:date>
    </item>
    <item>
      <title>RE: Executing multiple SQL statements</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Executing-multiple-SQL-statements/m-p/72931#M25536</link>
      <description>Hi Alex,&lt;BR /&gt;&lt;BR /&gt;I am assuming that although there are mulitple statements, only one of them return data. If this is the case, i recommend using SET NOCOUNT ON in the begining of the query. This will ensure that the OBDC connection waits till the very end for the results to come back.&lt;BR /&gt;&lt;BR /&gt;On the other hand if you have multiple results, then i dont think ODBC can support that. Eitherway, your SQL VBO will only expect one type of data and hence there wont be a way to bind multiple result sets to the return data item&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Bimal Sebastian&lt;BR /&gt;Consultant&lt;BR /&gt;Blueprism&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Oct 2020 08:46:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Executing-multiple-SQL-statements/m-p/72931#M25536</guid>
      <dc:creator>BimalSebastian</dc:creator>
      <dc:date>2020-10-06T08:46:00Z</dc:date>
    </item>
  </channel>
</rss>

