<?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>Question Re: Import data from databases. in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/import-data-from-databases/qaa-p/13822229#M4853072</link>
    <description>&lt;P&gt;Performance is MUCH improved in Version 12.&lt;/P&gt;</description>
    <pubDate>Thu, 13 May 2010 19:18:00 GMT</pubDate>
    <dc:creator>Breck_Carter</dc:creator>
    <dc:date>2010-05-13T19:18:00Z</dc:date>
    <item>
      <title>Import data from databases.</title>
      <link>https://community.sap.com/t5/technology-q-a/import-data-from-databases/qaq-p/13822227</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;

&lt;P&gt;I have two databases, I'd like to make a INSERT INTO database1.table ( SELECT * FROM database2.table );&lt;/P&gt;

&lt;P&gt;Is it possible? I'd like this rather than export manually and import later. I'd like to keep the script SQL.&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2010 12:28:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/import-data-from-databases/qaq-p/13822227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-13T12:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Import data from databases.</title>
      <link>https://community.sap.com/t5/technology-q-a/import-data-from-databases/qaa-p/13822228#M4853071</link>
      <description>&lt;P&gt;You can use &lt;STRONG&gt;proxy tables&lt;/STRONG&gt; for that - have a look at the &lt;A href="http://dcx.sybase.com/index.html#1101en/dbusage_en11/ug-accessrd.html" rel="nofollow"&gt;&lt;STRONG&gt;Remote Data Access&lt;/STRONG&gt;&lt;/A&gt; feature.&lt;/P&gt;

&lt;P&gt;Basically, you have to do the following in database 1:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Create a &lt;STRONG&gt;server&lt;/STRONG&gt; that points to the other database - if you have a ODBC DSN "db2", then you might specify something like&lt;/P&gt;

&lt;P&gt;CREATE SERVER Server2 CLASS 'SAODBC' USING 'db2';&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Create an &lt;STRONG&gt;externlogin&lt;/STRONG&gt; to that server (unless the user credentials are the same on both databases, then this should not be necessary), something like&lt;/P&gt;

&lt;P&gt;CREATE EXTERNLOGIN User1 TO Server2 REMOTE LOGIN MyUser2 IDENTIFIED BY MyPwd2;&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Create a &lt;STRONG&gt;proxy table&lt;/STRONG&gt; for the table of interest:&lt;/P&gt;

&lt;P&gt;CREATE EXISTING TABLE table2 at 'Server2...MyTable';&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Then you can access that remote table under the name &lt;EM&gt;table2&lt;/EM&gt;, such as&lt;/P&gt;

&lt;LI-CODE lang="sql"&gt;INSERT INTO table1
SELECT * FROM table2
ORDER BY 1;
&lt;/LI-CODE&gt;

&lt;P&gt;Note, however, that the performance to access remote data might be much slower compared to local access. This is particularly true if you are joining over local and remote data. Nevertheless, this is a very useful feature.&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2010 19:03:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/import-data-from-databases/qaa-p/13822228#M4853071</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2010-05-13T19:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: Import data from databases.</title>
      <link>https://community.sap.com/t5/technology-q-a/import-data-from-databases/qaa-p/13822229#M4853072</link>
      <description>&lt;P&gt;Performance is MUCH improved in Version 12.&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2010 19:18:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/import-data-from-databases/qaa-p/13822229#M4853072</guid>
      <dc:creator>Breck_Carter</dc:creator>
      <dc:date>2010-05-13T19:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Import data from databases.</title>
      <link>https://community.sap.com/t5/technology-q-a/import-data-from-databases/qaa-p/13822230#M4853073</link>
      <description>&lt;P&gt;Like I told you today at office, it's possible! But is too much work for just few tables and 1 import operation. In this case, I think the better option is unload/reload.&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2010 02:00:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/import-data-from-databases/qaa-p/13822230#M4853073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-14T02:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Import data from databases.</title>
      <link>https://community.sap.com/t5/technology-q-a/import-data-from-databases/qaa-p/13822231#M4853074</link>
      <description>&lt;P&gt;Thanks for the guidelide!&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2010 11:44:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/import-data-from-databases/qaa-p/13822231#M4853074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-14T11:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Import data from databases.</title>
      <link>https://community.sap.com/t5/technology-q-a/import-data-from-databases/qaa-p/13822232#M4853075</link>
      <description>&lt;P&gt;I need help with this and I am misunderstanding some basic concepts.  I will try to keep my ignorance simple.  I test my sql statements in isql sybase 10.  I can never seem to get items to work.  First am I thinking wrong?  can I do the above in isql for testing before I write my vb6 code? or is it tested in another interface?&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2012 12:43:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/import-data-from-databases/qaa-p/13822232#M4853075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-05-16T12:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Import data from databases.</title>
      <link>https://community.sap.com/t5/technology-q-a/import-data-from-databases/qaa-p/13822233#M4853076</link>
      <description>&lt;P&gt;Yes, you can run this code in Interactive SQL (and for testing or "learning" I would strongly recommend to use ISQL - or Sybase Central - over using any data access API).&lt;/P&gt;
&lt;P&gt;Are you gettting errors from your statements?&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2012 12:56:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/import-data-from-databases/qaa-p/13822233#M4853076</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2012-05-16T12:56:01Z</dc:date>
    </item>
  </channel>
</rss>

