Freigeben über


LinkedServer.EnumTables Method ()

Enumerates a list of tables that are available on the linked server.

Namespace: Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Declaration
Public Function EnumTables As DataTable
public DataTable EnumTables ()
public:
DataTable^ EnumTables ()
public DataTable EnumTables ()
public function EnumTables () : DataTable

Rückgabewert

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.

Hinweise

Der Namespace, die Klasse oder das Element wird nur in der Version 2.0 von Microsoft .NET Framework unterstützt.

Beispiel

How to: Link to an OLE-DB Provider Server in Visual Basic .NET

Threadsicherheit

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.

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

LinkedServer Class
LinkedServer Members
Microsoft.SqlServer.Management.Smo Namespace

Andere Ressourcen

Using Linked Servers in SMO
Verbindungsserver
sp_addlinkedserver (Transact-SQL)
sp_tables_ex (Transact-SQL)