Opens a database connection with the current property settings.
[Visual Basic] Overrides Public Sub Open() [C#] public override void Open(); [C++] public: override void Open(); [JScript] public override function Open();
Exception Type | Condition |
---|---|
ConnectionAlreadyOpen | The connection is already open. |
Notes to Inheritors: When overriding Open in a derived class, be sure to call the base class's Open method.
The following example creates a connection, opens it, begins a transaction, commits the transaction, rollsback the transaction, then closes the connection.
ADOConnection Class | ADOConnection Members | System.Data.ADO Namespace | Close