home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / database / 9295 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.7 KB  |  41 lines

  1. Newsgroups: comp.databases
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!tpsrd!tps.COM!thomasd
  3. From: thomasd@tps.COM (Thomas W. Day)
  4. Subject: Foxpro File Crashes
  5. Message-ID: <thomasd.28.727628716@tps.COM>
  6. Sender: news@tps.com (News Software)
  7. Organization: Telectronics Pacing Systems
  8. Date: Thu, 21 Jan 1993 15:05:16 GMT
  9. Lines: 30
  10.  
  11. I have a Fox database that lives on a server.  Occasionally, the server 
  12. crashes (we use LANMAN, no surprise) and my database goes down with it if a 
  13. record is being saved at the moment of the flameout.  I have found a cobbly 
  14. way to save the database, up to the last record that was open when the 
  15. system crashed, but I am unclear on what I'm really doing.  The following 
  16. are the instructions I have written to myself:
  17.  
  18.    How to "bring back" a Foxpro database that was crashed
  19.    by the network:
  20.  
  21.    The header record information can be altered to the last
  22.    recoverable record.  The database structure information
  23.    is located in the header (see page B-18 of the Foxpro
  24.    Developer's Guide).  
  25.  
  26.    To step the database record back to the last complete record,
  27.    decrement the fifth (5th) byte one record and test the database.
  28.    The Guide says the 4th through the 7th bytes record the "number
  29.    of records in the file," but for 10,000 record databases the 5th
  30.    byte is the last digit.  
  31.  
  32.    Example: The database crashed leaving the following information in
  33.    the header; F5 5C 09 1D 20 2D 00, changing 20 to 19 recovered
  34.    the database (approximately 11k records in the database).
  35.  
  36. Here's my question, as you can see by the last paragraph, I don't have a 
  37. clear idea of which hex bit is the least significant.  Does anyone know?
  38.  
  39. Thanks, 
  40. Tom Day
  41.