您可以使用系统过程来查看远程服务器上所有表的部分列表或完整列表。
前提条件
无。
调用 sp_remote_tables 系统过程以返回远程服务器上表的列表。
如果指定 @table_name 或 @table_owner,则列表中仅包含与这些参数匹配的表。
例
要获取由 GROUPO 拥有的远程服务器 RemoteSA 中所有表的列表,可执行以下语句:
CALL sp_remote_tables('RemoteSA', null, 'GROUPO'); |
要获取由 Fred 拥有的 Adaptive Server Enterprise 服务器 RemoteASE 的 Production 数据库中所有表的列表,可执行以下语句:
CALL sp_remote_tables('RemoteASE', null, 'Fred', 'Production'); |
要从名为 Excel 的远程服务器中获取所有可用 Microsoft Excel 工作表的列表,可执行以下语句:
CALL sp_remote_tables('Excel'); |
![]() |
使用DocCommentXchange讨论此页。
|
版权 © 2013, SAP 股份公司或其关联公司. - SAP Sybase SQL Anywhere 16.0 |