I have a VFP application that used by many users in network to access to the database on the file server (MS Windows NT network used). Occasionally (1-2 times at month) I receive reports that certain tables do not allow to add new record. When I look to them - they corrupted. Either tail of table is cut off or table header contains inappropriate information. Some information about these tables to avoid questions (and only these tables - other are not corrupted)
1. Record added by insert - sql command to view in 3-d buffering mode
2. View contains all fields from table.
3. Tables contain memo fields.
4. Tables contain many fields, but none of them named like any of VFP keywords.
5. Tables contain a lot of information (> 10000 records)
6. Tables are very often to be accessed by many users simultaneously.
To fix this problem, I need to open table in VFP design time mode in browse window, add 1-2 empty records and delete them. In run-time it does not works, because users cannot add new records.
Note, that I really cannot reproduce this situations and users don't know why it occurs, poweroffs was not a case.
Questions:
1. Let suggest that problem occurs because network failed or machine power off or by some other reason. How I can auto-recover corrupted table in run-time?
2. Let suggest that problem is in my application. Why it occurs and how I should insert new records to tables to avoid such problems? Note that change view to table is not acceptable, it will slow down work.
3. Let suggest that problem is many users access to the table simultaneously. What I should add to application to prevent problem?
1. Record added by insert - sql command to view in 3-d buffering mode
2. View contains all fields from table.
3. Tables contain memo fields.
4. Tables contain many fields, but none of them named like any of VFP keywords.
5. Tables contain a lot of information (> 10000 records)
6. Tables are very often to be accessed by many users simultaneously.
To fix this problem, I need to open table in VFP design time mode in browse window, add 1-2 empty records and delete them. In run-time it does not works, because users cannot add new records.
Note, that I really cannot reproduce this situations and users don't know why it occurs, poweroffs was not a case.
Questions:
1. Let suggest that problem occurs because network failed or machine power off or by some other reason. How I can auto-recover corrupted table in run-time?
2. Let suggest that problem is in my application. Why it occurs and how I should insert new records to tables to avoid such problems? Note that change view to table is not acceptable, it will slow down work.
3. Let suggest that problem is many users access to the table simultaneously. What I should add to application to prevent problem?