Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL view with parameter
Message
From
11/06/2003 18:45:32
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00799168
Message ID:
00799175
Views:
34
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform