select distinct TheColumn ; from TheTable ; into table c:\temp\allvalues ; order by TheColumnbrowse the result and look for out-of-the-norm values.
select * from TheTable into table c:\temp\UniqueCopy where 1=2 create table pks ( TheColumn i ) select pks index on TheColumn tag TheColumn select TheTable scan if ( ! indexseek( .f., "pks", "TheCOlumn" ) ) insert into pks values ( TheTable.TheColumn ) insert into UniqueCopy values ( TheTable.TheCOlumn, TheTable.... ) endif endscan>I get the same error from VFP. By the way I have version 7. How do I know if I have data corruption? I have aover 5 million records. How do you remove duplicates or create a unique query with sql select?