dotConnect for PostgreSQL Documentation
Devart.Data.PostgreSql Namespace / PgSqlConnection Class / ChangeDatabase Method
The database name.

ChangeDatabase Method (PgSqlConnection)
Changes the current database associated with an open PgSqlConnection.
Syntax
'Declaration
 
Public Overrides Sub ChangeDatabase( _
   ByVal databaseName As String _
) 
 

Parameters

databaseName
The database name.
Remarks
While changing the database the PgSqlConnection is closed and reopened.
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