Hi Gerard,
I am sorry, but I don't quite understand what is it that you are trying to accomplish here, would you mind trying to be more explicit?
Are you using VFP & SQL tables all the time in this application, or is this one time import?
You said you are updating an SQL table from a VFP table which has 200,000 records, right?
Also it looks like that the problem is in getting the lookup descriptions which are in the VFP tables and at the time of the import it is taking a lot of time, is this right?
Assuming what I understood is correct, you may change your approach to import the records. It will help if you can post the code you are using in a text file here so we can see clearly what you are doing. I have done some imports from CSV data, and it was really slow using the regular BO.Add or just ADO, so I changed my approach to use SqlBulkCopy which inserted the records into the SQL table really fast, in seconds, then after I had the records in SQL I did the rest of the process which resulted in a faster process. Take a look in the forums using "sqlbulkcopy" and you will find my posts and others.
You could also do the following:
1.- Use the sqlbulkcopy approach to create a temporary SQL table with all the lookup data, also import your 200K records.
2.- Create a stored procedure to do the lookup assignments and any other updates needed.
Keep in mind that using VFP/ADO you will be processing one record at a time with a loop/scan, etc. while in MS-SQL with a stored procedure you can process a whole bunch of record in a single pass. In my case my process done in SF with BOs took more than an hour to import and do some calculations and updates, with the help of a MS-SQL MVP consultant he helped me create a stored procedure that now process 500k records in 1-10 minutes, of course I had to pay him but his fees are very competitive he being a MS-SQL MVP.
Edhy Rijo