Dynamicweb 8 Documentation
GetTables(IDbConnection) Method

A database connection of either System.Data.OleDb.OleDbConnection or System.Data.SqlClient.SqlConnection. Can be obtained using CreateConnection.
Gets the tables in the connected database.
Syntax
'Declaration
 
Public Overloads Function GetTables( _ 
   ByVal connection As IDbConnection _ 
) As DataTable
public DataTable GetTables( 
   IDbConnection connection 
)

Parameters

connection
A database connection of either System.Data.OleDb.OleDbConnection or System.Data.SqlClient.SqlConnection. Can be obtained using CreateConnection.

Return Value

A DataTable with the schema table of the connection. Contains table names.
Remarks
Closes and disposes the connection.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DatabaseSchema Class
DatabaseSchema Members
Overload List

Send Feedback