DbConnection.ChangeDatabase Method (String)


Changes the current database for an open connection.

Namespace:   System.Data.Common
Assembly:  System.Data (in System.Data.dll)

abstract ChangeDatabase : 
        databaseName:string -> unit


Type: System.String

Specifies the name of the database for the connection to use.

The value supplied in the databaseName parameter must be a valid database name for the current instance.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Return to top