OLEDBConnection.MakeConnection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Establishes a connection for the specified OLE DB connection.
public:
void MakeConnection();
public void MakeConnection ();
Public Sub MakeConnection ()
Remarks
The MakeConnection() method can be used when a connection drops and the user wants to reestablish the connection.
Various objects and methods might return a run-time error if the connection is dropped. Use of this method assures a connection before executing other objects or methods.
This method will result in a run-time error if the MaintainConnection property of the specified OLE DB connection has been set to False.