<?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: access to external SQL database in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-external-sql-database/m-p/11458371#M1929652</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ECC 6.0 we have DEMO_EXEC_SQL as an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jan 2016 12:41:51 GMT</pubDate>
    <dc:creator>SilvioMiranda</dc:creator>
    <dc:date>2016-01-29T12:41:51Z</dc:date>
    <item>
      <title>access to external SQL database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-external-sql-database/m-p/11458368#M1929649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;I'm beginner in that kind of action so that's why I'm asking there help to masters &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_emote jive_macro" src="https://community.sap.com/74/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My need is : I must connect in an external database (other company) and insert data in several tables!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an access to that DB in display with "Microsoft SQL Server 2012" so I'm able to check inside the table if lines exist...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now, my issue is how to connect on this database and do the insert in one table (+check if the insert was well done) ???&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to access via MS SQL server i use things like&lt;/P&gt;&lt;P&gt;- server name&lt;/P&gt;&lt;P&gt;- ID&lt;/P&gt;&lt;P&gt;- password &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is that a way to exectute I don't know, a kind of SQL statement with inside the notion of connection to the external database + the insert X Y Z into table Where blablabla... ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;Pascal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 11:15:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-external-sql-database/m-p/11458368#M1929649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-01-29T11:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: access to external SQL database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-external-sql-database/m-p/11458369#M1929650</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;You can use SQL syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These statements define an area in an ABAP program in which one or more Native SQL statements are to be carried out. The area between EXEC and ENDEXEC is not completely checked by the syntax check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a small example in DEMO_NATIVE_SQL report.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 12:37:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-external-sql-database/m-p/11458369#M1929650</guid>
      <dc:creator>leonardo_buryanteixeira</dc:creator>
      <dc:date>2016-01-29T12:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: access to external SQL database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-external-sql-database/m-p/11458370#M1929651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pascal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While i personally dont like the idea of connecting directly to a 3rd party database and doing updates/changes from a data control perspective, this is possible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at this SCN thread &lt;A __default_attr="28819" __jive_macro_name="document" class="jive_macro_document jive_macro" data-orig-content="Connecting to External Database from SAP" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But just a suggestion it would probably be safer for the other system if you did a ftp/sftp of a flat file or even a SOAP call so that the other system could then handle the update of it's own database and ensure that nobody tries to update fields their not supposed to while also making it easier for them to update their system without fear of connections instantly failing due to fields being changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a thought that may make it less risky to the downstream system,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Geoffery&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 12:41:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-external-sql-database/m-p/11458370#M1929651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-01-29T12:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: access to external SQL database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-external-sql-database/m-p/11458371#M1929652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ECC 6.0 we have DEMO_EXEC_SQL as an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 12:41:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-external-sql-database/m-p/11458371#M1929652</guid>
      <dc:creator>SilvioMiranda</dc:creator>
      <dc:date>2016-01-29T12:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: access to external SQL database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-external-sql-database/m-p/11458372#M1929653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the example (DEMO_EXEC_SQL).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a quick look but nothing around the connection to the other system... isn't it?!&lt;/P&gt;&lt;P&gt;It's more this point which bring me some interrogations ... and not the "insert" SQL syntax&amp;nbsp; &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/74/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll have a look deeper to see if there's something around a connection to 1 other syst.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 13:18:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-external-sql-database/m-p/11458372#M1929653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-01-29T13:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: access to external SQL database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-external-sql-database/m-p/11458373#M1929654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know it's not really nice ... but it's a customer who impose me that ... so no choice&lt;/P&gt;&lt;P&gt;(he's working like that since a long time and won't change for me &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/74/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it's not his finale DB but a template one (and then, he transfer the templ into the final one himself I suppose)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 13:19:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-external-sql-database/m-p/11458373#M1929654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-01-29T13:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: access to external SQL database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-external-sql-database/m-p/11458374#M1929655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fair enough, guess some people really dont care bout the risk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that link with the configuration and code sample works for you then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Geoffery&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 13:21:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-external-sql-database/m-p/11458374#M1929655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-01-29T13:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: access to external SQL database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-external-sql-database/m-p/11458375#M1929656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To create a conection with another DB you must set up configuration in transaction DBCO.. &lt;/P&gt;&lt;P&gt;Take a look at this sap notes:&amp;nbsp; &lt;SPAN style="color: #333333; font-size: 12px;"&gt;178949, 323151 &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 14:42:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-external-sql-database/m-p/11458375#M1929656</guid>
      <dc:creator>SilvioMiranda</dc:creator>
      <dc:date>2016-01-29T14:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: access to external SQL database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-external-sql-database/m-p/11458376#M1929657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not exists in my ECC6 syst... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 14:45:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-external-sql-database/m-p/11458376#M1929657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-01-29T14:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: access to external SQL database</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-external-sql-database/m-p/11458377#M1929658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pascal, everyone can search on Google, beginners including. When I go to Google and type in "connect external database site:sap.com" or "insert to external database site:sap.com" it brings up very many posts. Native SQL is also covered in ABAP Help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd suggest to ask your Basis admin to establish the DB connection. In case your SAP system does not run on Windows/SQL (ours is on Linux/Oracle, for example) there is a bit more work needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Overall agree with Geoffery's suggestion that it's not a good idea in general (and be prepared for a slow performance) but alas, some occasions call for it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jan 2016 22:59:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/access-to-external-sql-database/m-p/11458377#M1929658</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2016-01-29T22:59:02Z</dc:date>
    </item>
  </channel>
</rss>

