<?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: Query Remote Server for Table List in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/query-remote-server-for-table-list/qaa-p/13846532#M4877375</link>
    <description>&lt;P&gt;Excellent.  Thanks Mark!&lt;/P&gt;</description>
    <pubDate>Tue, 26 Feb 2013 23:44:26 GMT</pubDate>
    <dc:creator>former_SQLA_member1694868</dc:creator>
    <dc:date>2013-02-26T23:44:26Z</dc:date>
    <item>
      <title>Query Remote Server for Table List</title>
      <link>https://community.sap.com/t5/technology-q-a/query-remote-server-for-table-list/qaq-p/13846530</link>
      <description>&lt;P&gt;Having successfully connected to an MS Access database via ODBC, I am now trying to make the process of making proxy tables even faster. &lt;/P&gt;
&lt;P&gt;How do you query a remote server (any ODBC remote server already defined at this point) for a list of tables?  I want to use the list to run a list of statements against to create proxy tables?&lt;/P&gt;
&lt;P&gt;I used the Migrate server commands successfully for the most part, but they run into trouble if you have any tables with the same name.  Also, I may be getting different versions of the same file and it would be useful to increment them somehow, probably using something attached to the tablename such as S1TableName, S2TableName etc.  or TableNameS1, TableNameS2 etc. for different sources of the same table.&lt;BR /&gt;
&lt;/P&gt;
&lt;P&gt;I tried looking at the transaction log to see what SQL is run when Sybase Central pulls the list, but it looks like that is coded within the program because there were no applicable statements in the transaction log.&lt;BR /&gt;
&lt;/P&gt;
&lt;P&gt;I tried this statement: &lt;/P&gt;
&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="n"&gt;FORWARD&lt;/SPAN&gt; &lt;SPAN class="n"&gt;TO&lt;/SPAN&gt; &lt;SPAN class="n"&gt;Testing&lt;/SPAN&gt; &lt;SPAN class="p"&gt;{&lt;/SPAN&gt; &lt;SPAN class="n"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class="o"&gt;*&lt;/SPAN&gt; &lt;SPAN class="n"&gt;FROM&lt;/SPAN&gt; &lt;SPAN class="n"&gt;MSysObjects&lt;/SPAN&gt; &lt;SPAN class="n"&gt;WHERE&lt;/SPAN&gt; &lt;SPAN class="n"&gt;Type&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;1&lt;/SPAN&gt; &lt;SPAN class="n"&gt;AND&lt;/SPAN&gt; &lt;SPAN class="n"&gt;Flags&lt;/SPAN&gt;&lt;SPAN class="o"&gt;=&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;0&lt;/SPAN&gt;&lt;SPAN class="p"&gt;};&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;/DIV&gt;


&lt;P&gt;and I get Record(s) cannot be read; no read permission on 'MSysObjects'.&lt;/P&gt;
&lt;P&gt;Google tells me that for that error message you need to open Access and change the security on that table, but the whole point of the exercise is to be able to convert a file using the remote db without having to open it in Access.  The permissions sure aren't keeping Sybase Central from getting a table list because that's what it shows when you try to use the wizard to create a proxy table: a list of available tables.&lt;BR /&gt;
&lt;/P&gt;
&lt;P&gt;I appreciate all the help.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2013 21:30:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-remote-server-for-table-list/qaq-p/13846530</guid>
      <dc:creator>former_SQLA_member1694868</dc:creator>
      <dc:date>2013-02-26T21:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Query Remote Server for Table List</title>
      <link>https://community.sap.com/t5/technology-q-a/query-remote-server-for-table-list/qaa-p/13846531#M4877374</link>
      <description>&lt;P&gt;Try using &lt;A href="http://dcx.sybase.com/index.html#1201/en/dbreference/sp-remote-tables-system-procedure.html"&gt;sp_remote_tables( ... )&lt;/A&gt; - see the &lt;A href="http://dcx.sybase.com/index.html#1201/en/dbreference/sp-remote-tables-system-procedure.html"&gt;docs&lt;/A&gt; for the parameters (e.g. first parameter is the proxy server name)&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;FWIW the transaction log only records the changes made to the database. The SQL that Sybase Central uses to query the database will not appear in the transaction log because these SQL queries do not update the database.  In the future you could consider using &lt;A href="http://dcx.sybase.com/index.html#1201/en/dbusage/performance-s-5753386.html"&gt;Request Logging&lt;/A&gt; by using the -zr and -zo server command line switches to see what SQL statements are being sent to the server from any client - see the &lt;A href="http://dcx.sybase.com/index.html#1201/en/dbusage/performance-s-5753386.html"&gt;docs&lt;/A&gt; for more information.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2013 22:19:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-remote-server-for-table-list/qaa-p/13846531#M4877374</guid>
      <dc:creator>MarkCulp</dc:creator>
      <dc:date>2013-02-26T22:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Query Remote Server for Table List</title>
      <link>https://community.sap.com/t5/technology-q-a/query-remote-server-for-table-list/qaa-p/13846532#M4877375</link>
      <description>&lt;P&gt;Excellent.  Thanks Mark!&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2013 23:44:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/query-remote-server-for-table-list/qaa-p/13846532#M4877375</guid>
      <dc:creator>former_SQLA_member1694868</dc:creator>
      <dc:date>2013-02-26T23:44:26Z</dc:date>
    </item>
  </channel>
</rss>

