Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Not same result when going through OleDb
Message
De
17/04/2006 10:30:14
 
 
À
17/04/2006 06:16:10
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01113992
Message ID:
01114055
Vues:
14
>It has to do with 'set ansi'. With OleDb and odbc driver ansi is on (under VFP it is off by default). Both with ODBC and OleDB driver first make a call to:
>
>set ansi off
>
>if you want the behavior as it's in VFP. ie:
>
>OleDbCommand cmd = new OleDbCommand("set ansi off",cn);
>cmd.ExecuteNonQuery();
>
Cetin

Ok, so that explains. Presently, I didn't change that value and adjusted the SQL instead to use LIKE operator instead of =. I'm not sure however if LIKE is has optimized as =.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform