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)

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: DataTableDataTable.

Exception | Condition |
---|---|
ArgumentNullException | In case the SQL is null. |
SqlException | In case the underlying connection cause an exception. |

