Edytuj

Udostępnij za pośrednictwem


OLEDBConnection.MakeConnection Method

Definition

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.

Applies to