CdbConnection::Close Method

Closes an open Connection object.

Syntax

VOIDClose(VOID);

Usage

#include <afxole.h>
#include <dbdao.h>

CdbDBEngine      dben;
CdbConnection   conn;
CdbWorkspace      ws;
...
ws = dben.CreateWorkspace(..., dbUseODBC);
conn = ws.OpenConnection(...);
...               // Do some work.
conn.Close();
ws.Close();