Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
View Returning no Records?
Message
De
03/09/1999 00:17:03
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00260986
Message ID:
00261008
Vues:
25
>The following is a remote view of VFP data. I have a record of cCustNo = 'ABBA' and 'ABBB'. If I use 'AB' as my ?CustNoWanted field, I get no records returned. If I use 'ABBA' then I get the first one only. I want both. Set exact is off and set near is on and set ansi is off. Maybe it's the hour, but I need help....
>
>Create SQL View CustBrowseCustNo ;
> ;
> connection elS-Adm shared as;
> select ;
> cCustNo , ;
> cCustType , ;
> cNameLas , ;
> cPhone1 , ;
> .f. as lSel;
> from ;
> Customers ;
> where ;
> cCustNo = ?cCustNoWanted ;
> order by ;
> cCustno

This is mostly a guess, but I bet that the SET ANSI setting is ignored when accessing the data through ODBC. The VFP ODBC driver is probbly deciding how the strings are compared, and attempting to emulate how most datasources handle this, by doing an exact string comparison. Try LIKE instead of =.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform