home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!decwrl!pa.dec.com!nntpd2.cxo.dec.com!tincup.enet.dec.com!lindsey
- From: lindsey@tincup.enet.dec.com (Randy Lindsey)
- Subject: Re: How to trim down dBASE IV database file ?
- Message-ID: <1992Aug20.174911.25906@nntpd2.cxo.dec.com>
- Sender: usenet@nntpd2.cxo.dec.com (USENET News System)
- Organization: Colorado Software Solutions, Inc.
- References: <1992Aug19.212534.11942@jato.jpl.nasa.gov> <1992Aug20.034649.16721@cam.compserv.utas.edu.au> <1992Aug20.170134.582@jato.jpl.nasa.gov>
- Date: Thu, 20 Aug 1992 18:47:43 GMT
- Lines: 42
-
-
- In article <1992Aug20.170134.582@jato.jpl.nasa.gov>, khioe@mona.jpl.nasa.gov (Kent Hioe) writes...
- >In article <1992Aug20.034649.16721@cam.compserv.utas.edu.au> rhidding@esk.compserv.utas.edu.au (Robert Andrew Hidding) writes:
- >>Try using the DBase command "PACK". Deleting a record only results in the
- >>record being marked as deleted, but it isn't physically deleted until
- >>"PACK"ed.
- >
- >I have tried that but the file size still remains the same.
- >
- >This is what I did:
- >
- >before record deletion :
- >slhist.dbf 2546900 byte.
- ># of records: 10500 records
- >
- >--------------------------------
- >delete 10000 records
- >pack
- >
- >--------------------------------
- >After deletion:
- >slhist.dbf 2546900 byte. <<< how come the size is the same as before ?
- ># of records: 500 records.
- >
- >
- >My original question was how to gain back the memory disk space ?
- >
- >
- >Thank you for your help.
- >
- >
- >--
- >Kent
- >khioe@juno.jp.nasa.gov
-
- After the pack, copy the database:
- COPY TO xxx
- This will make a complete new copy, with only the live records. Then
- you can delete the old one and rename the new one to the original name.
-
- Randy Lindsey
-
-