<?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: Problem with Native SQL DB connection. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-native-sql-db-connection/m-p/6300958#M1391065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't use SY-UNAME in the Native Sql, So give the DB connection name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Nov 2009 05:09:48 GMT</pubDate>
    <dc:creator>former_member222860</dc:creator>
    <dc:date>2009-11-04T05:09:48Z</dc:date>
    <item>
      <title>Problem with Native SQL DB connection.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-native-sql-db-connection/m-p/6300957#M1391064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the value of a  parameter (a or b)&lt;/P&gt;&lt;P&gt;I create 2 connections.&lt;/P&gt;&lt;P&gt;In both the cases connection is made as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;EXEC SQL.
CONNECT TO :CONNECTIONNAME AS :SY-UNAME.
ENDEXEC.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Where connection name is different in both the cases &amp;amp; accessing DB table is also different).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now it gives me following dump when both the cases are executed one by one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;EXSQL_ILLEGAL_CONNECTION&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to avoid this dump ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;deepanadhi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 04:39:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-native-sql-db-connection/m-p/6300957#M1391064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-04T04:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Native SQL DB connection.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-native-sql-db-connection/m-p/6300958#M1391065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't use SY-UNAME in the Native Sql, So give the DB connection name&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 05:09:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-native-sql-db-connection/m-p/6300958#M1391065</guid>
      <dc:creator>former_member222860</dc:creator>
      <dc:date>2009-11-04T05:09:48Z</dc:date>
    </item>
  </channel>
</rss>

