>Hi,
>I'm just wondering about where to put a SQL view (named Vdemo). I can design it in SQL server and use it with just "select * from Vdemo" in VFP. Or I can write the often complex select-sentence in VFP using SQLEXEC(), remote view or have it in a cursor-adapter. But what if I want to add a parameter? Will a "Select * from Vdemo where field=?value" use the filter on the server or will the whole cursor be transferred before the filter is adapted?
You would design the view in the view designer, which you access from your database. The parameters can be included there, under the "Filter" tab, for instance,
Field Name: field
Criteria: =
Example: ?value
HTH,
Hilmar.
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)