How To Use API to Customize DAO Registry to Close ODBC Connection (170536)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q170536 SUMMARY
In DAO, using the Close method on a database opened with ODBC drivers does
not close the database; a cached connection remains idle before timing out.
The default duration of this timeout is 600 seconds (10 minutes). If your
application cannot accept the default behavior, you could control this time-out period by customizing the ConnectionTimeout value in Windows registry setting.
REFERENCES
For additional information, please see the following articles in the
Microsoft Knowledge Base:
145679 How To Use the Registry API to Save and Retrieve Setting
110227 PRB: ODBC Database Remains Open After a Close Method Used
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbhowto kbMDACNoSweep KB170536 |
---|
|