ExecuteDataset Method (String, String)
From MySQL Connector.Net
|
|
| MySQL Connector/Net |
| MySqlHelper..::..ExecuteDataset Method (String, String) |
| MySqlHelper Class See Also Send Feedback |
|
|
Executes a single SQL command and returns the resultset in a DataSet.
A new MySqlConnection object is created, opened, and closed during this method.
Namespace: MySql.Data.MySqlClient
Assembly: MySql.Data (in MySql.Data.dll) Version: 6.8.4.0
Syntax
| C# |
|---|
public static DataSet ExecuteDataset( string connectionString, string commandText ) |
| Visual Basic |
|---|
Public Shared Function ExecuteDataset ( _ connectionString As String, _ commandText As String _ ) As DataSet |
| Visual C++ |
|---|
public: static DataSet^ ExecuteDataset( String^ connectionString, String^ commandText ) |
Parameters
- connectionString
- Type: System..::..String
Settings to be used for the connection
- commandText
- Type: System..::..String
Command to execute
Return Value
DataSet containing the resultset
See Also