Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL view with parameter
Message
De
11/06/2003 18:45:32
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00799168
Message ID:
00799175
Vues:
32
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform