dotConnect for MySQL Documentation
Devart.Data.MySql Namespace / MySqlConnection Class / ChangeDatabase Method

In This Topic
    ChangeDatabase Method (MySqlConnection)
    In This Topic
    Changes the current database associated with an open connection.
    Syntax
    'Declaration
     
    Public Overrides Sub ChangeDatabase( _
       ByVal value As String _
    ) 
    public override void ChangeDatabase( 
       string value
    )

    Parameters

    value
    Remarks
    This method does not close physical connection to the server, it only changes the current database associated with an open connection. See Database property for more information about databases associated with connections.
    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