打破
手机体验官:华为nova 15 Pro购机时机与价格趋势,reasoning_content:我们要求以手机体验官的口吻,写一个与手机相关,关于[华为nova 15 Pro购机指南:最佳时机与价格趋势解析]的标题需要简短精炼,30字以内直接输出标题,不要其他说明nn可能的比如华为nova 15 Pro购机指南:何时入手最划算? 或者 最佳时机与价格趋势:华为nova 15 Pro购机指南但需要以手机体验官的口吻,可以加个体验官说之类的但标题要直接nn注意:原文要求是以’手机体验官’的口吻,所以标题中最好体现出来,比如手机体验官:华为nova 15 Pro购机最佳时机解析但字数要控制nn更简洁:华为nova 15 Pro购机指南:体验官教你把握价格趋势 但可能超30字nn试试:华为nova 15 Pro购机最佳时机与价格趋势 这是18字,但没体现口吻可以加体验官说在前面:体验官说:华为nova 15 Pro购机时机与价格趋势 共24字或者手机体验官荐:华为nova 15 Pro购机最佳时机 共22字nn考虑到手机体验官本身是身份,可以省略说字,直接手机体验官|华为nova 15 Pro购机时机与价格趋势 但可能超更简洁:手机体验官:华为nova 15 Pro购机指南 共18字,但没体现最佳时机与价格趋势解析nn原题目是[华为nova 15 Pro购机指南:最佳时机与价格趋势解析],所以可以保留核心我决定输出:手机体验官:华为nova 15 Pro购机时机与价格趋势 共22字,符合要求
17 9 月 2026, 周四

怎样经由ADO来压缩Microsoft Access数据库

HOWTO: Compacting Microsoft Access Database via ADO



——————————————————————————–

The information in this article applies to:



ActiveX Data Objects (ADO), versions 2.1, 2.5, 2.6

Microsoft OLE DB Provider for Jet, version 4.0



——————————————————————————–





SUMMARY

Although ADO specification does not provide objects to compact or repair Microsoft Access databases, this capability can be achieved by using the ADO extension: Microsoft Jet OLE DB Provider and Replication Objects (JRO). This capability was implemented for the first time in the JET OLE DB Provider version 4.0 (Msjetoledb40.dll) and JRO version 2.1 (Msjro.dll). These DLL files are available after the install of MDAC 2.1. You can download the latest version of MDAC from the following Web site:





Universal Data Access Web Site







MORE INFORMATION

To repair and compact an Access database using ADO, MDAC 2.1 or later must be properly installed on the computer. The following are the main steps to compact a Microsoft Access database using Visual Basic and Visual C++:



Visual Basic: Compacting an Access Database via ADO

In the Visual Basic IDE, on the Projects menu, click References.





Add Microsoft Jet and Replication Objects X.X library, where (X.X is greater than or equal to 2.1).





Add the following lines of code to Visual Basic, replacing the data source and destination database pathsif needed:





Dim jro As jro.JetEngine

Set jro = New jro.JetEngine

jro.CompactDatabase “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\\nwind2.mdb”, _

“Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\\abbc2.mdb;Jet OLEDB:Engine Type=4”

NOTE: In DAO 3.60, the RepairDatabase method is no longer available. The above code shows the use of the

CompactDatabase method. This method replaces the DAO 3.5 RepairDatabase method.

Visual C++: Compacting an Access Database via ADO

Besides #import, the Msado15.dll (MDAC2.1), add the following #import statement to generate the wrapper classes for JRO to your .cpp classes (alternatively, you can generate the wrapper classes more efficiently by using the no_implementation and implementation_only attributes of the #import pre-processor statement):





#import “C:\PROGRAM FILES\COMMON FILES\System\ado\MSJRO.DLL” no_namespace  Add the following (specifying your own source and destination database paths) to the .cpp file where you

want to compact the database:







try

{

  IJetEnginePtr jet(__uuidof(JetEngine));

  jet->CompactDatabase(

        “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\\nwind2.mdb”,

        “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=d:\\abbc.mdb;” \

        “Jet OLEDB:Engine Type=4”);

}

catch(_com_error &e)

{      

  ::MessageBox(NULL, (LPCTSTR)e.Description( ), “”, MB_OK) ;    

}

NOTE: The Jet OLEDB:Engine Type=4 is only for Jet 3.x format MDB files. If this value is left out, the

database is automatically upgraded to the 4.0 version (Jet OLEDB:Engine Type=5). See the following table

for appropriate values for Jet OLEDB:Engine Type:

Jet OLEDB:Engine Type Jet x.x Format MDB Files

1 JET10

2 JET11

3 JET2X

4 JET3X

5 JET4X











REFERENCES

For additional information, please see the following article in the Microsoft Knowledge Base:



Q230496 Compacting Microsoft Access database via OLE DB



Additional query words: CompactDatabase RepairDatabase reindex



Keywords : kbADO210 kbJET kbProvider kbVBp600 kbVC kbGrpDSVCDB kbGrpDSMDAC kbDSupport kbADO250 tslic_tslic

kbADO260

Issue type : kbhowto

Technology : kbAudDeveloper kbADOsearch kbADO210 kbADO250 kbADO260 kbOLEDBSearch kbOLEDBProvJet400

kbOLEDBProvSearch




dawei

【声明】:150手机网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。

您错过了

手机体验官:华为nova 15 Pro购机时机与价格趋势,reasoning_content:我们要求以手机体验官的口吻,写一个与手机相关,关于[华为nova 15 Pro购机指南:最佳时机与价格趋势解析]的标题需要简短精炼,30字以内直接输出标题,不要其他说明nn可能的比如华为nova 15 Pro购机指南:何时入手最划算? 或者 最佳时机与价格趋势:华为nova 15 Pro购机指南但需要以手机体验官的口吻,可以加个体验官说之类的但标题要直接nn注意:原文要求是以’手机体验官’的口吻,所以标题中最好体现出来,比如手机体验官:华为nova 15 Pro购机最佳时机解析但字数要控制nn更简洁:华为nova 15 Pro购机指南:体验官教你把握价格趋势 但可能超30字nn试试:华为nova 15 Pro购机最佳时机与价格趋势 这是18字,但没体现口吻可以加体验官说在前面:体验官说:华为nova 15 Pro购机时机与价格趋势 共24字或者手机体验官荐:华为nova 15 Pro购机最佳时机 共22字nn考虑到手机体验官本身是身份,可以省略说字,直接手机体验官|华为nova 15 Pro购机时机与价格趋势 但可能超更简洁:手机体验官:华为nova 15 Pro购机指南 共18字,但没体现最佳时机与价格趋势解析nn原题目是[华为nova 15 Pro购机指南:最佳时机与价格趋势解析],所以可以保留核心我决定输出:手机体验官:华为nova 15 Pro购机时机与价格趋势 共22字,符合要求