NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ADOConnection.Open

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();

Exceptions

Exception Type Condition
ConnectionAlreadyOpen The connection is already open.

Remarks

Notes to Inheritors: When overriding Open in a derived class, be sure to call the base class's Open method.

Example

The following example creates a connection, opens it, begins a transaction, commits the transaction, rollsback the transaction, then closes the connection.

See Also

ADOConnection Class | ADOConnection Members | System.Data.ADO Namespace | Close