dotConnect for MySQL Documentation
Devart.Data.MySql Namespace / MySqlHelper Class / ExecuteDataset Method / ExecuteDataset(MySqlConnection,String) Method
The MySqlConnection object to use.
The command to execute.

In This Topic
    ExecuteDataset(MySqlConnection,String) Method
    In This Topic
    Executes a single SQL command and returns the resultset in a System.Data.DataSet. The state of the MySqlConnection object remains unchanged after execution of this method.
    Syntax
    'Declaration
     
    Public Overloads Shared Function ExecuteDataset( _
       ByVal connection As MySqlConnection, _
       ByVal commandText As String _
    ) As DataSet
    public static DataSet ExecuteDataset( 
       MySqlConnection connection,
       string commandText
    )

    Parameters

    connection
    The MySqlConnection object to use.
    commandText
    The command to execute.

    Return Value

    System.Data.DataSet containing the resultset.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also