LinkedServer.EnumTables Método
Enumerates a list of tables that are available on the linked server.
Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Sintaxis
'Declaración
Public Function EnumTables As DataTable
'Uso
Dim instance As LinkedServer
Dim returnValue As DataTable
returnValue = instance.EnumTables()
public DataTable EnumTables()
public:
DataTable^ EnumTables()
member EnumTables : unit -> DataTable
public function EnumTables() : DataTable
Valor devuelto
Tipo: 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 |
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 |
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 |
The name of the table in the linked server. This field always returns a value. |
|
TABLE_TYPE |
The type of table: table, system table, or view. |
|
REMARKS |
SQL Server does not return a value for this column. |
Ejemplos
Utilizar servidores vinculados en SMO
Vea también
Referencia
Espacio de nombres Microsoft.SqlServer.Management.Smo
Otros recursos
Servidores vinculados (motor de base de datos)