<?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: SQL error &amp;quot;-2&amp;quot; occured when executing EXEC SQL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-error-quot-2-quot-occured-when-executing-exec-sql/m-p/1587323#M264714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Klaus,&lt;/P&gt;&lt;P&gt;We are using ORACLE database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2011 08:05:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-10-12T08:05:40Z</dc:date>
    <item>
      <title>SQL error "-2" occured when executing EXEC SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-error-quot-2-quot-occured-when-executing-exec-sql/m-p/1587317#M264708</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;&lt;/P&gt;&lt;P&gt;An error occured when executing a shipment transaction.&lt;/P&gt;&lt;P&gt;There is a native SQL code written in a Z function module,where the dump occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Runtime errors:DBIF_DSQL2_SQL_ERROR&lt;/P&gt;&lt;P&gt;Exception:CX_SY_NATIVE_SQL_ERROR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error points to a selection from a different database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have given the code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; EXEC SQL PERFORMING CREATE_MESSAGE_TEXT.&lt;/P&gt;&lt;P&gt;   SELECT CARRIER, SUM(FREIGHT_CHARGE) INTO :SCAC, :FREIGHT&lt;/P&gt;&lt;P&gt; FROM SHIPMENT_ID@URP_ITP ID, SHIP_CHARGE_DETL@URP_ITP DETL&lt;/P&gt;&lt;P&gt;  WHERE ID.SHIP_ID_TYPE = 5&lt;/P&gt;&lt;P&gt;  AND ID.EXTERNAL_SHIP_ID = :ITSHIPID&lt;/P&gt;&lt;P&gt;  AND ID.SHIPMENT_HANDLE = DETL.SHIPMENT_HANDLE&lt;/P&gt;&lt;P&gt;  GROUP BY CARRIER&lt;/P&gt;&lt;P&gt; ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly provide ur suggestion regarding this dump.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 12:05:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-error-quot-2-quot-occured-when-executing-exec-sql/m-p/1587317#M264708</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T12:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: SQL error "-2" occured when executing EXEC SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-error-quot-2-quot-occured-when-executing-exec-sql/m-p/1587318#M264709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     check whether entry exist in table DBCOn&lt;/P&gt;&lt;P&gt;     for database.  &lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 12:14:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-error-quot-2-quot-occured-when-executing-exec-sql/m-p/1587318#M264709</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T12:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: SQL error "-2" occured when executing EXEC SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-error-quot-2-quot-occured-when-executing-exec-sql/m-p/1587319#M264710</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;This is because the maximum number of secondary database connections was exceeded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check if OSS note 323151 helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sailaja.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sailaja N.L.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 12:15:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-error-quot-2-quot-occured-when-executing-exec-sql/m-p/1587319#M264710</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T12:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: SQL error "-2" occured when executing EXEC SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-error-quot-2-quot-occured-when-executing-exec-sql/m-p/1587320#M264711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Could not able to find entries in table DBCON. We are not getting this problem always. But we are getting this problem very often.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 09:01:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-error-quot-2-quot-occured-when-executing-exec-sql/m-p/1587320#M264711</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-28T09:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: SQL error "-2" occured when executing EXEC SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-error-quot-2-quot-occured-when-executing-exec-sql/m-p/1587321#M264712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sailaja,&lt;/P&gt;&lt;P&gt;What would be the solution to this error ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we increase the number of secondary database connections?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 04:26:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-error-quot-2-quot-occured-when-executing-exec-sql/m-p/1587321#M264712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-12T04:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: SQL error "-2" occured when executing EXEC SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-error-quot-2-quot-occured-when-executing-exec-sql/m-p/1587322#M264713</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;the SQL error may have several reasons. 1st we need to know, which database you are using (e.g. Oracle) to find out the meaning of value "-2".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For MSSQL e.g. i have found a web information, that code 2 means timeout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Klaus Babl on Oct 12, 2011 7:51 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 05:45:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-error-quot-2-quot-occured-when-executing-exec-sql/m-p/1587322#M264713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-12T05:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: SQL error "-2" occured when executing EXEC SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-error-quot-2-quot-occured-when-executing-exec-sql/m-p/1587323#M264714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Klaus,&lt;/P&gt;&lt;P&gt;We are using ORACLE database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 08:05:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-error-quot-2-quot-occured-when-executing-exec-sql/m-p/1587323#M264714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-12T08:05:40Z</dc:date>
    </item>
  </channel>
</rss>

