Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ODBC Text Driver Problem
Message
From
25/09/1999 18:46:28
Raul Davila
Davila Programming Services
Toa Alta, Puerto Rico
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
ODBC Text Driver Problem
Miscellaneous
Thread ID:
00269003
Message ID:
00269003
Views:
52
Hi:

I'm having a problem with the MS ODBC Text Driver
I have a DSN which points to a CSV file.
Everything works ok until I try a WHERE clause involving LIKE.

SELECT * FROM customers.csv WHERE cust_name LIKE "some_value"

Error:
[State=37000] [Error=-3100] [Microsoft] [ODBC Text Driver]
Expresion cannot be used with the LIKE predicate. in query
expression 'cust_name alike 'some_value''.

I tried the SELECT with different ODBC drivers and DSN's and it works ok.
At first I thought WHERE clauses where not supported in ODBC Text Drivers.
But the following works ok (numeric comparison in the where clause):
SELECT * from customers.csv WHERE cust_id = 12345

I'd rather use some other driver but in this case I really need
to use the text driver.

Any ideas?

TIA
R. Davila
DBA / Network Administrator
Administracion de Fomento Comercial
Gobierno de Puerto Rico

Still waiting for FoxPro for LINUX
Reply
Map
View

Click here to load this message in the networking platform