Npgsql API Documentation |

# NpgsqlConnection.ChangeDatabase Method

[This is preliminary documentation and subject to change.]

This method changes the current database by disconnecting from the actual database and connecting to the specified.

[Visual Basic]
NotOverridable Public Sub ChangeDatabase( _
ByVal dbName As String _
) Implements _
IDbConnection.ChangeDatabase
[C#]
public void ChangeDatabase(
string dbName
);

#### Parameters

dbName
  The name of the database to use in place of the current database.

#### Implements

IDbConnection.ChangeDatabase

#### See Also

NpgsqlConnection Class | Npgsql Namespace