>Thank you Ed,
>
>Yes it worked, at first I was affraid the file would be too long to fit into a variable but it's OK
Unless there's an interface limit on SQLExec(), the limit on string length in VFP is the limit of memory - and if you have a SQL statement that big, run, don't walk, to the nearest Advil dispenser...