Firebird ADO.NET Provider SDK Documentation - v1.7

FbConnection.Open Method 

Opens a new connection to a database with the property settings specified by the ConnectionString.

[Visual Basic]
NotOverridable Public Sub Open() _
    Implements IDbConnection.Open
[C#]
public void Open();

Implements

IDbConnection.Open

Remarks

The FbConnection draws an open connection from the connection pool if one is available. Otherwise, it establishes a new connection to the database.

Note:

If a FbConnection object goes out of scope, the connection it represents does not close automatically, you need to explicitly close the connection by calling Close or Dispose methods.

Exceptions

Exception TypeCondition
InvalidOperationExceptionThe connection is already open.
ArgumentExceptionIf Connection string is not valid.
FbExceptionA connection-level error occurred while opening the connection.

See Also

FbConnection Class | FirebirdSql.Data.Firebird Namespace