Dynamicweb 8 Documentation
GetTableColumns Method (DatabaseSchema)

A database connection.
Name of the table to get columns from.
Gets the table columns.
Syntax
'Declaration
 
Public Function GetTableColumns( _ 
   ByVal connection As IDbConnection, _ 
   ByVal tableName As String _ 
) As DataTable
public DataTable GetTableColumns( 
   IDbConnection connection,
   string tableName 
)

Parameters

connection
A database connection.
tableName
Name of the table to get columns from.

Return Value

A DataTable with the schema table of the tableName. Column names and DbTypes.
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

Send Feedback