指定されたサーバで使用可能なリモート・テーブルのリストを取得するように SQL Anywhere を設定するときに、 sp_remote_tables システム・プロシージャを使用すると便利です。sp_remote_tables プロシージャは、リモート・サーバ上のテーブルのリストを返します。
sp_remote_tables( @server-name [, @table-name [, @table-owner [, @table-qualifier [, @with-table-type ] ] ] ] ) |
table-name または table-owner を指定すると、テーブルのリストはその指定に当てはまるものだけに限定されます。
たとえば、リモート・サーバから使用可能なすべての Microsoft Excel ワークシートの中から、excel という名前のリストを取得するには、次のようにします。
CALL sp_remote_tables excel; |
Adaptive Server Enterprise サーバ asetest の運用データベースにある fred が所有するすべてのテーブルのリストを取得するには、次のようにします。
CALL sp_remote_tables asetest, null, fred, production; |
詳細については、sp_remote_tables システム・プロシージャを参照してください。
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |