Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IN( ) condition Remote View where filter doesn't return
Message
De
07/03/2006 07:55:12
 
 
À
07/03/2006 02:47:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01101117
Message ID:
01102029
Vues:
21
>
>try with a macro
>
>in (&vp_isalesdocid)
>
>

>
>Thank you Fabio for your suggestion but the backend SQL Server doesn't understand the macro substitution syntax & so this doesn't work.
>I don't really know why VFP only takes into account the first value in the IN( x,y,z) clause so I think I'll settle for a SQL Pass Through approach because this does work.
>
>BTW: I also tested manually creating the remote view but this gives me the same result as the VFP9 View designer.
>
>Mark

It works for me.
PUBLIC inItems
inItems = '1,2'
CREATE SQL VIEW TEST REMOTE AS SELECT * FROM TABLE WHERE id IN (&inItems) CONNECTION ....
USE TEST
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform