LinkedServer.EnumTables 메서드 (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(Microsoft.SqlServer.Smo.dll)

구문

‘선언
Public Function EnumTables ( _
    tableName As String, _
    schemaName As String, _
    databaseName As String _
) As DataTable
‘사용 방법
Dim instance As LinkedServer 
Dim tableName As String 
Dim schemaName As String 
Dim databaseName As String 
Dim returnValue As DataTable 

returnValue = instance.EnumTables(tableName, _
    schemaName, databaseName)
public DataTable EnumTables(
    string tableName,
    string schemaName,
    string databaseName
)
public:
DataTable^ EnumTables(
    String^ tableName, 
    String^ schemaName, 
    String^ databaseName
)
member EnumTables : 
        tableName:string * 
        schemaName:string * 
        databaseName:string -> DataTable
public function EnumTables(
    tableName : String, 
    schemaName : String, 
    databaseName : String
) : DataTable

매개 변수

반환 값

유형: System.Data.DataTable
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, 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.

SMO에서 연결된 서버 사용

참고 항목

참조

LinkedServer 클래스

EnumTables 오버로드

Microsoft.SqlServer.Management.Smo 네임스페이스

관련 자료

연결된 서버(데이터베이스 엔진)

sp_addlinkedserver(Transact-SQL)

sp_tables_ex(Transact-SQL)