How to "compact" an Access Database

How to "compact" an Access Database

Postby hterce » Sat Dec 22, 2007 4:19 pm

Hi,

How do you "compact" an .MDB file in FW? Can somebody share me a code?

Thanks
Bert
hterce
 
Posts: 10
Joined: Sat Dec 22, 2007 12:02 am

Re: How to "compact" an Access Database

Postby Enrico Maria Giordano » Sat Dec 22, 2007 7:19 pm

Code: Select all  Expand view
FUNCTION MAIN()

    LOCAL oJro := CREATEOBJECT( "JRO.JetEngine" )

    LOCAL cConStr1 := "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=old.mdb"
    LOCAL cConStr2 := "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=new.mdb"

    oJro:CompactDatabase( cConStr1, cConStr2 )

    RETURN NIL


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: nageswaragunupudi and 110 guests