AwDbData.FillSchema Method 

Reads the schema to the data table.

[Visual Basic]
Public Function FillSchema( _
   ByVal dataTable As DataTable, _
   ByVal sql As String, _
   ByVal connectionControl As Boolean _
) As Boolean
[C#]
public bool FillSchema(
   DataTable dataTable,
   string sql,
   bool connectionControl
);

Parameters

dataTable
DataTable.
sql
SQL.
connectionControl
Value that indicates whether it controls the connection automatically.

Return Value

Returns true if successful; otherwise false.

Remarks

If connectionControl is true, first of all the connection to the database is opened and at last it is closed. Even if it executes this method, the data is not read.

Example

How to read schema of the database to the data table dt.

dbData.FillSchema(dt, "SELECT * FROM xxxtbl", True)
dbData.FillSchema(dt, "SELECT * FROM xxxtbl", true);

See Also

AwDbData Class | Asterworld.Data Namespace

Home | Software & Source Code Library | About Us | Information Based on Law | Terms of Service
Software List | Product Price List | How to Buy | Order Form | FAQ | Site Map
Copyright (C) 2001-2012 Asterworld. All Rights Reserved.