Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (日本語) » SQL Anywhere サーバ - SQL の使用法 » リモート・データとバルク・オペレーション » リモート・データへのアクセス » リモート・サーバの使用

 

サーバ上のリモート・テーブルのリスト

指定されたサーバで使用可能なリモート・テーブルのリストを取得するように 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 システム・プロシージャを参照してください。