How does FoxPro fix data corruption?
SET TABLEVALIDATE 11
USE "YourTable" EXCLUSIVE && If the table is damaged VFP must display an error here
PACK && To reindex the table and deleted "marked" records
PACK MEMO && If you have memo fields
SELECT * FROM YourTable WHERE EMPTY(YourField) && All records with YourField empty
SELECT * FROM YourTable WHERE LEN(YourMemoField) > 200 && All records with a long memo field, there can be corrupted data
Source: By Lance Fisher as answer to the question
This code snippet was collected from stackoverflow, and is licensed under CC BY-SA 3.0
Related code-snippets:
- Binary data in MySQL.
- Flat file databases are generally stored in a computer hard drive. Flat file databases cannot be shared by any party with another.
- How do I upgrade my SQL Server database version?
- How do you iterate over a result set of data?
- How do you swap unique indexed column values in database?
- If a.net Embedded Database runs on a network. Embedded Database can run off a network.
- The ability to edit a database by multiple users is essential.
- What is the best way to use a database in c#?
- How is database indexing used?
- How do I index database columns?
- Can you limit the number of records returned in LinqDataSource?
- MOSS SSP Issue - Failed database logins from deleted SSP.
- How do you persist tree structure to a database table with auto incrementing IDs using an ADO.NET DataSet and DataAdapter?
- What is heritage in database?
- Is UUID used to register database rows in web applications?