<?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: Open sql vs native sql in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-vs-native-sql/m-p/1833534#M355043</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;If you are accessing the SAP tables and database you go for native SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you want to access other database other than the one SAP is using you go for Open SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jan 2007 09:33:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-05T09:33:34Z</dc:date>
    <item>
      <title>Open sql vs native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-vs-native-sql/m-p/1833531#M355040</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;I want to know do you always use native sql for abap programming, i believe that use native sql has better performance than open sql and easy to retrieve data from database, but may be face the upgrade issues, database changes and so on. how do you balance them. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 02:39:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-vs-native-sql/m-p/1833531#M355040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-05T02:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Open sql vs native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-vs-native-sql/m-p/1833532#M355041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Open SQL &lt;/P&gt;&lt;P&gt;Open SQL is a set of ABAP/4 commands which perform operations on database tables. The results of these operations and associated error messages are independent of the database system used. Open SQL thus offers you unified SQL syntax and semantics for different database systems (see Portability). An ABAP/4 program which uses these commands can be run on database systems supported by SAP without modification. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Native SQL &lt;/P&gt;&lt;P&gt;Native SQL allows you to perform operations on databases over and above those in the Open SQL command set. In contrast to Open SQL, Native SQL supports not only operations on the local database active in the R/3 System, but also on any external databases. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We normally use open SQL, but in some case when you want to say look at the upper case value of an upper/lower case field in a database, you can use native SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Native SQL seems somewhat slower and you have to know which databse you will be using it on before coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information type EXEC in the editor and press F1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click the below link for OPEN SQL&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3969358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3969358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click the below link for Native SQL&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please assign points to all helpful answers&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;- Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 03:17:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-vs-native-sql/m-p/1833532#M355041</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-01-05T03:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Open sql vs native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-vs-native-sql/m-p/1833533#M355042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;         By using NATIVE SQL we ristrict the application. It becomes DATABASE dependant. You cannot migrate from one DATABASE system to another with out code change. OPEN SQL provides you that flexibility. And also since the conversion of OPEN to NATIVE happens in the application server's database interface it will not have much difference in performance, and the avantages of buffering and locking concepts of ABAP come handy here. SO its always better to use OPEN SQL than Native SQL unless you are sure that you will never migrate to any other database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 04:00:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-vs-native-sql/m-p/1833533#M355042</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-01-05T04:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: Open sql vs native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-vs-native-sql/m-p/1833534#M355043</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;If you are accessing the SAP tables and database you go for native SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you want to access other database other than the one SAP is using you go for Open SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 09:33:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-vs-native-sql/m-p/1833534#M355043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-05T09:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Open sql vs native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-vs-native-sql/m-p/1833535#M355044</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;  By default Open SQL statements use automatic client handling.Also you can use same syntax irrespective of underlying data base.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Native SQL does not do automatic client handling. It treats MANDT field just as any other field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Native SQL statements are always risky being DB specific queries, since it by passes R/3 database interface, for this reason we need to use Open SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP Dictionary that contain long columns with the types LCHR or LRAW should only be addressed using Open SQL, since the columns contain extra, database-specific length information for the column. Native SQL does not take this information into account, and may therefore produce incorrect results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it takes greater resposibility on part of application developers before using NATIVE SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 11:50:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-vs-native-sql/m-p/1833535#M355044</guid>
      <dc:creator>VinayPrasad_PM</dc:creator>
      <dc:date>2007-01-05T11:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Open sql vs native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-vs-native-sql/m-p/1833536#M355045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My experience is that native SQL is slower than open SQL, but that native SQL allows things that open SQL doesn't (like translating to upper or lower case when selecting). Since native SQL is platform specific, if you write native SQL on one database platform, it may not work on another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2007 14:02:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-vs-native-sql/m-p/1833536#M355045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-05T14:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Open sql vs native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-vs-native-sql/m-p/1833537#M355046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Yes...sometimes Native SQL is good than Open SQL, b'coz you will never get a time out error while accessing huge databases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can write Oracle stmts inside the Native SQL, like fetching first 1000000 records initially, then doing your processing, then again fetch the next 1000000.&lt;/P&gt;&lt;P&gt;In this way, the parallel processing will happen and you will never run out of memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2007 04:05:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-vs-native-sql/m-p/1833537#M355046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-12T04:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Open sql vs native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-vs-native-sql/m-p/1833538#M355047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Portfolio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open SQL &lt;/P&gt;&lt;P&gt;Open SQL is a set of ABAP/4 commands which perform operations on database tables. The results of these operations and associated error messages are independent of the database system used. Open SQL thus offers you unified SQL syntax and semantics for different database systems (see Portability). An ABAP/4 program which uses these commands can be run on database systems supported by SAP without modification. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Native SQL &lt;/P&gt;&lt;P&gt;Native SQL allows you to perform operations on databases over and above those in the Open SQL command set. In contrast to Open SQL, Native SQL supports not only operations on the local database active in the R/3 System, but also on any external databases. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We normally use open SQL, but in some case when you want to say look at the upper case value of an upper/lower case field in a database, you can use native SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Native SQL seems somewhat slower and you have to know which databse you will be using it on before coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information type EXEC in the editor and press F1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click the below link for OPEN SQL&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3969358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3969358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click the below link for Native SQL&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please assign points to all helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jan 2007 04:55:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-sql-vs-native-sql/m-p/1833538#M355047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-12T04:55:33Z</dc:date>
    </item>
  </channel>
</rss>

