how to compact Msaccess database using c#

后端 未结 3 639
情话喂你
情话喂你 2021-01-15 12:44

is it possible to compact the Msaccess database using c# if so let me know the way?

3条回答
  •  花落未央
    2021-01-15 13:32

    ...
    //invoke a CompactDatabase method of a JRO object
    //pass Parameters array
    objJRO.GetType().InvokeMember("CompactDatabase",
        System.Reflection.BindingFlags.InvokeMethod,
        null,
        objJRO,
        oParams);
    ...
    

    See more details at http://www.codeproject.com/KB/database/mdbcompact_latebind.aspx

提交回复
热议问题