<?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 What is the difference between open sql and native sql in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-open-sql-and-native-sql/m-p/3188169#M759344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;what is the difference between open sql and native sql&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Gani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Dec 2007 10:17:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-18T10:17:01Z</dc:date>
    <item>
      <title>What is the difference between open sql and native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-open-sql-and-native-sql/m-p/3188169#M759344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;what is the difference between open sql and native sql&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Gani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 10:17:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-open-sql-and-native-sql/m-p/3188169#M759344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T10:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between open sql and native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-open-sql-and-native-sql/m-p/3188170#M759345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Open SQL statements are a subset of Standard SQL that is fully integrated in ABAP. They allow you to access data irrespective of the database system that your installation is using. Open SQL consists of the Data Manipulation Language (DML) part of Standard SQL; in other words, it allows you to read (SELECT) and change (INSERT, UPDATE, DELETE) data. The tasks of the Data Definition Language (DDL) and Data Control Language (DCL) parts of Standard SQL are performed in NetWeaver AS ABAP by the ABAP Dictionary and the authorization system. These provide a unified range of functions, irrespective of database, and also contain functions beyond those offered by the various database systems. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open SQL also goes beyond Standard SQL to provide statements that, in conjunction with other ABAP constructions, can simplify or speed up database access. It also allows you to buffer certain tables on the ABAP application server, saving excessive database access. In this case, the database interface is responsible for comparing the buffer with the database. Buffers are partly stored in the working memory of the current work process, and partly in the shared memory for all work processes on an ABAP application server. Where NetWeaver AS ABAP is distributed across more than one ABAP application server, the data in the various buffers is synchronized at set intervals by the buffer management. When buffering the database, you must remember that data in the buffer is not always up to date. For this reason, you should only use the buffer for data which does not often change. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Native SQL is only loosely integrated into ABAP, and allows access to all of the functions contained in the programming interface of the respective database system. In Native SQL, you can primarily use database-specific SQL statements. The Native SQL interface sends them as is to the database system where they are executed. You can use the full SQL language scope of the respective database which makes all programs using Native SQL specific for the database system installed. In addition, there is a small set of SAP-specific Native SQL statements which are handled in a special way by the Native SQL interface. ABAP applications contain as little Native SQL as possible. In fact, it is only used in a few components (for example, to create or change table definitions in the ABAP Dictionary).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreenivas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 25, 2008 4:38 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 10:19:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-open-sql-and-native-sql/m-p/3188170#M759345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T10:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between open sql and native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-open-sql-and-native-sql/m-p/3188171#M759346</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;Open SQL - ABAP specific SQL&lt;/P&gt;&lt;P&gt;Native SQL - DB specific SQL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open SQL allows you to access database tables declared in the ABAP Dictionary regardless of the database platform that you R/3 System is using. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Native SQL allows you to use database-specific SQL statements in an ABAP program. This means that you can use database tables that are not administered by the ABAP Dictionary, and therefore integrate data that is not part of the R/3 System.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a rule, an ABAP program containing database-specific SQL statements will not run under different database systems. If your program will be used on more than one database platform, only use Open SQL statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 10:20:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-open-sql-and-native-sql/m-p/3188171#M759346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T10:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between open sql and native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-open-sql-and-native-sql/m-p/3188172#M759347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Native sql statements change according to the database, where as the open sql statements are abap statements and they goto the database utility and convert them to native sql statements and pass it to database.&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 25, 2008 4:39 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 10:21:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-open-sql-and-native-sql/m-p/3188172#M759347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T10:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between open sql and native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-open-sql-and-native-sql/m-p/3188173#M759348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Native SQL Commands:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Commandss that are specific to the Database(i.e. some SQL commands of 'Oracle' wont work with 'My SQL'.). Should be written in EXEC statement in ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open SQL Commands:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The commands that are not specific for a particular Database( i.e. no matter whether Oracle or My SQL is the database the commands work directly in ABAP)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 25, 2008 4:39 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 10:22:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-open-sql-and-native-sql/m-p/3188173#M759348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T10:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between open sql and native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-open-sql-and-native-sql/m-p/3188174#M759349</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;ganesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open sql in the these are the sql statements for ABAP irrespective of the database used in the SAP system &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as well as SAP provides facility to write the sql statements regarding to the database used tht is these native sql statements may diffeer from one database to other &lt;/P&gt;&lt;P&gt;if u want to write native sql commands then u have write thos in between &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;exec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;native sql statements....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endexec.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and feel free to ask any quiries my mail id &lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 25, 2008 4:40 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 10:25:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-open-sql-and-native-sql/m-p/3188174#M759349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T10:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between open sql and native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-open-sql-and-native-sql/m-p/3188175#M759350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difference is:&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;OPEN SQL&lt;/STRONG&gt;&lt;/U&gt; -  is basic SQL language (SELECT,FROM,WHERE....) this SQL is what in common in all DB servers. That means you &lt;STRONG&gt;don't care&lt;/STRONG&gt; what kind of  DB server your sytem working.&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;NTIVE SQL&lt;/STRONG&gt;&lt;/U&gt; - is DB server specific language, for Example ORACLE has some commands that MSSQL won't understand.That means you &lt;STRONG&gt;must&lt;/STRONG&gt; know what kind of DB server your sytem working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Eli Steklov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 25, 2008 4:40 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 10:26:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-open-sql-and-native-sql/m-p/3188175#M759350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T10:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between open sql and native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-open-sql-and-native-sql/m-p/3188176#M759351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;open sql is the Sql statements we use in ABAP which are independent of the underlying database.native sql statements are the ones which are directly related to  the underlying database and only work with it. So use of native sql statements is avoided for  portability purposes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;pavan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 25, 2008 4:41 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 10:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-open-sql-and-native-sql/m-p/3188176#M759351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T10:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between open sql and native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-open-sql-and-native-sql/m-p/3188177#M759352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ganesh,&lt;/P&gt;&lt;P&gt;open SQL allows you to access all database tables known to the SAP system, regardless of the database manufacturer. Sometimes, however, we may want to use database-specific SQL statements called Native SQL in your ABAP/4 program.&lt;/P&gt;&lt;P&gt;To avoid incompatibilities between different database tables and also to make ABAP/4 programs independent of the database system in use, SAP has created a set of separate SQL statements called Open SQL. Open SQL contains a subset of standard SQL statements as well as some enhancements which are specific to SAP.&lt;/P&gt;&lt;P&gt;A database interface translates SAP's Open SQL statements into SQL commands specific to the database in use. Native SQL statements access the database directly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 10:29:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-open-sql-and-native-sql/m-p/3188177#M759352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T10:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between open sql and native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-open-sql-and-native-sql/m-p/3188178#M759353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I would like to know how can I update a table in MS SQL database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;        EXEC SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          UPDATE sap_sync&lt;/P&gt;&lt;P&gt;             SET (orders = :wa-c_orders,&lt;/P&gt;&lt;P&gt;                       travel = :wa-c_travel)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ENDEXEC.&lt;/P&gt;&lt;P&gt;      CATCH cx_sy_native_sql_error INTO oref .&lt;/P&gt;&lt;P&gt;    ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I'm getting an exception with this command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2008 20:27:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-open-sql-and-native-sql/m-p/3188178#M759353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-25T20:27:19Z</dc:date>
    </item>
  </channel>
</rss>

