Closes the connection to the data source.
Closes the connection to the data source. This is the preferred method.
[Visual Basic] Overloads Overrides Public Sub Close()
[C#] public override void Close();
[C++] public: override void Close();
[JScript] public override function Close();
Closes the connection to the data source with a boolean that indicates a forced closure.
[Visual Basic] Overloads Protected Sub Close(Boolean)
[C#] protected void Close(bool);
[C++] protected: void Close(bool);
[JScript] protected function Close(Boolean);
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