Mono Class Library: System.Data.SqlClient.SqlConnection Overview | Members

System.Data.SqlClient.SqlConnection.ChangeDatabase Method

Change the database currently associated with the System.Data.SqlClient.SqlConnection instance.

public override void ChangeDatabase (string database)

Parameters

database
The name of an existing database to associate the System.Data.SqlClient.SqlConnection instance with.

Remarks

Change the database currently associated with the System.Data.SqlClient.SqlConnection instance. The SqlConnection instance must already be connected to a SQL Server database.

Requirements

Namespace: System.Data.SqlClient
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0