DataSource.ExecuteDataTable Method

System.Data.Generic

DataSourceExecuteDataTable Method
Sends the SQL Query to the Connection and returns a DataTable.

Namespace: System.Data.Generic
Assembly: System.Data.Generic (in System.Data.Generic.dll) Version: 1.9.5473.30542 (1.9.5473.2392)
Syntax
public DataTable ExecuteDataTable(
	string SQL
)
Public Function ExecuteDataTable ( 
	SQL As String
) As DataTable
public:
DataTable^ ExecuteDataTable(
	String^ SQL
)
member ExecuteDataTable : 
        SQL : string -> DataTable 

Parameters

SQL
Type: SystemString
SQL statement to execute.

Return Value

Type: DataTable
DataTable.
Exceptions
ExceptionCondition
ArgumentNullExceptionIn case the SQL is null.
SqlExceptionIn case the underlying connection cause an exception.
Remarks