Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Not same result when going through OleDb
Message
From
17/04/2006 10:30:14
 
 
To
17/04/2006 06:16:10
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01113992
Message ID:
01114055
Views:
15
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform