Petras
>>Yet it seems that VFP generates "select * from xxxx" when creating the views ignoring the statement in the "create sql view..".<<
This is not the case in my experience.
It is difficult to comment further without a lot more detail. I wonder whether you perhaps need to use the NODATA keyword when you USE your RV's if you do so before your parameters are set.
Regards
JR
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us."
-- Shakespeare: Coriolanus, Act 1, scene 1