PRB: RepairDatabase Method Is No Longer Available in DAO 3.6 (294966)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Access 2000
- Microsoft Access 97
This article was previously published under Q294966 SYMPTOMS
If you issue a DbEngine.RepairDatabase method after you change your project references from Microsoft DAO 3.51 Object Library to Microsoft DAO 3.6 Object Library, you may receive the following error message:
Error # 3251 was generated by DAO.DbEngine.
Operation is not supported for this type of object.
Or, you may notice that the method is not available through IntelliSense when you issue a DbEngine.RepairDatabase method.
CAUSE
In Data Access Object (DAO) 3.6, the RepairDatabase method is no longer available or supported. This is by design to match Microsoft Jet 4.0.
RESOLUTION
If you need this functionality, you can use the CompactDatabase method, which also repairs a Microsoft Jet database.
REFERENCESFor additional information, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
230727 INFO: Visual Studio 6.0 SP3 Readme: Part 4 - Visual C++
230501 HOWTO: Compacting Microsoft Access Database via ADO
Modification Type: | Major | Last Reviewed: | 6/28/2004 |
---|
Keywords: | kbJET kbprb KB294966 |
---|
|