home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / database / 6218 < prev    next >
Encoding:
Text File  |  1992-08-20  |  1.7 KB  |  54 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!decwrl!pa.dec.com!nntpd2.cxo.dec.com!tincup.enet.dec.com!lindsey
  3. From: lindsey@tincup.enet.dec.com (Randy Lindsey)
  4. Subject: Re: How to trim down dBASE IV database file ?
  5. Message-ID: <1992Aug20.174911.25906@nntpd2.cxo.dec.com>
  6. Sender: usenet@nntpd2.cxo.dec.com (USENET News System)
  7. Organization: Colorado Software Solutions, Inc.
  8. References: <1992Aug19.212534.11942@jato.jpl.nasa.gov> <1992Aug20.034649.16721@cam.compserv.utas.edu.au> <1992Aug20.170134.582@jato.jpl.nasa.gov>
  9. Date: Thu, 20 Aug 1992 18:47:43 GMT
  10. Lines: 42
  11.  
  12.  
  13. In article <1992Aug20.170134.582@jato.jpl.nasa.gov>, khioe@mona.jpl.nasa.gov (Kent Hioe) writes...
  14. >In article <1992Aug20.034649.16721@cam.compserv.utas.edu.au> rhidding@esk.compserv.utas.edu.au (Robert Andrew Hidding) writes:
  15. >>Try using the DBase command "PACK". Deleting a record only results in the
  16. >>record being marked as deleted, but it isn't physically deleted until
  17. >>"PACK"ed.
  18. >I have tried that but the file size still remains the same.
  19. >This is what I did:
  20. >before record deletion :
  21. >slhist.dbf      2546900 byte.
  22. ># of records: 10500 records
  23. >--------------------------------
  24. >delete 10000 records
  25. >pack
  26. >--------------------------------
  27. >After deletion:
  28. >slhist.dbf      2546900 byte. <<<  how come the size is the same as before ?
  29. ># of records: 500 records.
  30. >My original question was how to gain back the memory disk space ?
  31. >Thank you for your help.
  32. >--
  33. >Kent
  34. >khioe@juno.jp.nasa.gov
  35.  
  36. After the pack, copy the database:
  37.   COPY TO xxx
  38. This will make a complete new copy, with only the live records.  Then
  39. you can delete the old one and rename the new one to the original name.
  40.  
  41. Randy Lindsey
  42.  
  43.