ExecuteReader Method (String, String)

MySQL Connector/Net

Executes a single command against a MySQL database.

Namespace:  MySql.Data.MySqlClient
Assembly:  MySql.Data (in MySql.Data.dll) Version: 6.2.2.0

Syntax

C#
public static MySqlDataReader ExecuteReader(
	string connectionString,
	string commandText
)
Visual Basic (Declaration)
Public Shared Function ExecuteReader ( _
	connectionString As String, _
	commandText As String _
) As MySqlDataReader
Visual C++
public:
static MySqlDataReader^ ExecuteReader(
	String^ connectionString, 
	String^ commandText
)

Parameters

connectionString
Type: System..::.String
Settings to use for this command
commandText
Type: System..::.String
Command text to use

Return Value

MySqlDataReader object ready to read the results of the command

See Also