LinkedServer.EnumTables Method (String, String, String)
Enumerates a list of tables that are available on the linked server for a specified table name, schema, and database.
네임스페이스: Microsoft.SqlServer.Management.Smo
어셈블리: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)
구문
‘선언
Public Function EnumTables ( _
tableName As String, _
schemaName As String, _
databaseName As String _
) As DataTable
public DataTable EnumTables (
string tableName,
string schemaName,
string databaseName
)
public:
DataTable^ EnumTables (
String^ tableName,
String^ schemaName,
String^ databaseName
)
public DataTable EnumTables (
String tableName,
String schemaName,
String databaseName
)
public function EnumTables (
tableName : String,
schemaName : String,
databaseName : String
) : DataTable
매개 변수
- tableName
A String value that specifies the name of the table.
- schemaName
A String value that specifies the name of the schema.
- databaseName
A String value that specifies the name of the database.
반환 값
A DataTable object value that contains a list of tables that can be accessed on the linked server. The table describes the different columns of the returned DataTable.
Column |
Data type |
Description |
TABLE_CAT |
String |
The table qualifier name. Various DBMS products support three-part naming for tables (qualifier.owner.name). In SQL Server 2005, this column represents the database name. In some other products, it represents the server name of the database environment of the table. This field can be NULL. |
TABLE_SCHEM |
String |
The owner of the table in the linked server. In SQL Server, this column represents the name of the database user who created the table. This field always returns a value. |
TABLE_NAME |
String |
The name of the table in the linked server. This field always returns a value. |
TABLE_TYPE |
String |
The type of table: table, system table, or view. |
REMARKS |
String |
SQL Server does not return a value for this column. |
주의
이 네임스페이스, 클래스 또는 멤버는 Microsoft .NET Framework 2.0 버전에서만 지원됩니다.
예
How to: Link to an OLE-DB Provider Server in Visual Basic .NET
스레드 보안
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
플랫폼
개발 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
대상 플랫폼
지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.
참고 항목
참조
LinkedServer Class
LinkedServer Members
Microsoft.SqlServer.Management.Smo Namespace
관련 자료
Using Linked Servers in SMO
서버 연결
sp_addlinkedserver(Transact-SQL)
sp_tables_ex(Transact-SQL)