>I tried to include the following code a run-time executable:
>
>
>open database MyDatabase exclusive
>validate database recover
>
>
>I keep getting error that this requires that database is open exclusive. It is, from what I see.
>
>What am I missing?
Perhaps it was previously open, and VFP fails to re-open it exclusively? Try to CLOSE ALL or CLOSE DATABASE or something similar, before the commands you showed.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)