<?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: fetch multiple records using Native SQL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-multiple-records-using-native-sql/m-p/10593368#M1861250</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Check if this is useful in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See here &lt;A __default_attr="99556" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="SDB_ADBC - the program" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using there:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cl_sql_connection&lt;/P&gt;&lt;P&gt;cl_sql_statement &lt;/P&gt;&lt;P&gt;cl_sql_result_set&lt;/P&gt;&lt;P&gt;cx_sql_exception &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Sep 2014 18:27:02 GMT</pubDate>
    <dc:creator>rosenberg_eitan</dc:creator>
    <dc:date>2014-09-05T18:27:02Z</dc:date>
    <item>
      <title>fetch multiple records using Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-multiple-records-using-native-sql/m-p/10593367#M1861249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to fetch data from an external database which is an oracle sysrtem.&lt;/P&gt;&lt;P&gt;I am currenty using cursor method to fetch the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "fetch next cursor1" only bring 1 record at a time. And it is taking more than 20 mins to bring 1 record, it seems the table i am fetching has more than 12 million records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please answer these 2 questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) If is have oracle commands to query their tables, can i use them directly between the EXEC SQL&amp;nbsp;&amp;nbsp; and&amp;nbsp; ENDEXEC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; When i put a semicolon its giving error. Oracle statements end with semicolon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) There must be a way of fetching a set of records at one go from external system. Does anyone know the technique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 16:23:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-multiple-records-using-native-sql/m-p/10593367#M1861249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-05T16:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: fetch multiple records using Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-multiple-records-using-native-sql/m-p/10593368#M1861250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Check if this is useful in your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See here &lt;A __default_attr="99556" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="SDB_ADBC - the program" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using there:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cl_sql_connection&lt;/P&gt;&lt;P&gt;cl_sql_statement &lt;/P&gt;&lt;P&gt;cl_sql_result_set&lt;/P&gt;&lt;P&gt;cx_sql_exception &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 18:27:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fetch-multiple-records-using-native-sql/m-p/10593368#M1861250</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2014-09-05T18:27:02Z</dc:date>
    </item>
  </channel>
</rss>

