dotConnect for Snowflake Documentation
Devart.Data.Snowflake Namespace / SnowflakeConnection Class / ChangeDatabase Method
The name of the database.

On this page
    ChangeDatabase Method (SnowflakeConnection)
    On this page
    Changes the current database of an open connection.
    Syntax
    'Declaration
     
    Public Overrides Sub ChangeDatabase( _
       ByVal value As String _
    ) 
    public override void ChangeDatabase( 
       string value
    )

    Parameters

    value
    The name of the database.
    Remarks
    The method executes USE DATABASE and moves the session to the PUBLIC schema of the specified database. It doesn't close the connection or create a new session. When the connection is closed and returned to the pool, the database and the schema of the connection string are restored.
    See Also