Change the database currently associated with the System.Data.SqlClient.SqlConnection instance.
- database
- The name of an existing database to associate the System.Data.SqlClient.SqlConnection instance with.
Change the database currently associated with the System.Data.SqlClient.SqlConnection instance. The SqlConnection instance must already be connected to a SQL Server database.
Namespace: System.Data.SqlClient
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0