How to compact an Access Database under VB.Net?

  • Thread starter Thread starter Georges Bessis
  • Start date Start date
G

Georges Bessis

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
 
¤ 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)
 
Back
Top