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

System.Data.SqlClient.SqlConnection.Open Method

Opens a connection to a SQL Server database.

public override void Open ()

Remarks

This method opens a new connection (or obtains an existing one from the connection pool) to a SQL Server database using a previously provided connection string.

A SqlException will be thrown if the connection is closed and any commands are executed against the SQL server.

Requirements

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