ExecuteDataRow Method

MySQL Connector/Net

Executes a single SQL command and returns the first row of the resultset. 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.2.2.0

Syntax

C#
public static DataRow ExecuteDataRow(
	string connectionString,
	string commandText,
	params MySqlParameter[] parms
)
Visual Basic (Declaration)
Public Shared Function ExecuteDataRow ( _
	connectionString As String, _
	commandText As String, _
	ParamArray parms As MySqlParameter() _
) As DataRow
Visual C++
public:
static DataRow^ ExecuteDataRow(
	String^ connectionString, 
	String^ commandText, 
	... array<MySqlParameter^>^ parms
)

Parameters

connectionString
Type: System..::.String
Settings to be used for the connection
commandText
Type: System..::.String
Command to execute
parms
Type: array< MySql.Data.MySqlClient..::.MySqlParameter >[]()[]
Parameters to use for the command

Return Value

DataRow containing the first row of the resultset

See Also