Hi,

In VB6, and DO, I used to progam this simply by
Compactdatabase(SOurce, Destination)
And also I used : repairdatabase (MyDataBase)
These where standard DAO.DBEngine methods

How do I do that in pure VB.Net?
Thanks in advance

GB6

Re: How to compact an Access Database under VB.Net? by Paul

Paul
Fri Oct 28 14:18:53 CDT 2005

On Fri, 28 Oct 2005 21:06:56 +0200, "Georges Bessis" <georges@bessis.com> wrote:

¤ Hi,
¤
¤ In VB6, and DO, I used to progam this simply by
¤ Compactdatabase(SOurce, Destination)
¤ And also I used : repairdatabase (MyDataBase)
¤ These where standard DAO.DBEngine methods
¤
¤ How do I do that in pure VB.Net?
¤ Thanks in advance

You can either use DAO or JRO. There is no native method because there is no native provider for the
Jet database engine.

http://support.microsoft.com/default.aspx?scid=kb;en-us;306287


Paul
~~~~
Microsoft MVP (Visual Basic)