Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table Corruptions
Message
From
22/12/2004 10:04:29
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 7 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00971072
Message ID:
00971413
Views:
17
>After all these years with Fox We are still having problem with table corruptions. We have remote installations of our applications and we get a lot of table does not match with Index errors.

Yes, it's a problem we all seem to live with. I do understand the difficulties involved with updating the same file from multiple workstations, so I give the VFP team some slack in this regard. I think it's just the nature of the beast when you're dealing with file system based databases.

There are ways we can insulate ourselves from this though:

1. Use a multi-tiered application architecture. Having a middle tier component that accesses the date files (preferably running on the same system that has the data files),instead of the workstations will reduce any network related corruption. And a side benefit is that you'll be able to run your app across a WAN.

2. Have a pristine network with the proper workstation settings (no file caching etc...). This is hard for us to control, but if you have an optimal network and workstations, you should have good data.

I don't know of a utility that allows dynamic index file rebuilds without having exlusive access to the table, but you could institute a nightly index rebuild if your app availability requirements allows it. This would at least fix any problems that happened that day.

HTH.
William Fields
MCSD - Microsoft Visual FoxPro
MCP - Win2k Pro
US Bankruptcy Court
Phoenix, AZ
Previous
Reply
Map
View

Click here to load this message in the networking platform