DGC.Data Programmer's Reference

IDal.GetSQLDataSet Method (String, String)

Executes a SQL statment and populates a DataTable with the results set.

[Visual Basic]
Function GetSQLDataSet( _
   ByVal sql As String, _
   ByVal tableName As String _
) As DataSet
[C#]
DataSet GetSQLDataSet(
   string sql,
   string tableName
);

Parameters

sql
The SQL statement to execute.
tableName
The name of the typed DataTable to populate.

Return Value

An untyped DataSet object.

Remarks

A DataTable is created within a DataSet object and then populated with the data.

See Also

IDal Interface | DGC.Data Namespace | IDal.GetSQLDataSet Overload List