dotConnect for Snowflake Documentation
Devart.Data Namespace / SqlShimConnection Class / Close Method

On this page
    Close Method (SqlShimConnection)
    On this page
    Closes the connection to Snowflake. This is the preferred method of closing any open connection.
    Syntax
    'Declaration
     
    Public Overrides Sub Close() 
    public override void Close()
    Remarks
    The Close method rolls back the open transaction started with BeginTransaction(). It then returns the session to the connection pool, or ends the session if connection pooling is disabled.

    Note that you must manually close all connections opened by the application. If a SnowflakeConnection goes out of scope, it is not closed automatically.

    See Also