DbConnection.ChangeDatabase Method (String)

 

Changes the current database for an open connection.

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

Public MustOverride Sub ChangeDatabase (
	databaseName As String
)

Parameters

databaseName
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
Show: