Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ODBC Text Driver Problem
Message
De
25/09/1999 18:46:28
Raul Davila
Davila Programming Services
Toa Alta, Porto Rico
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
ODBC Text Driver Problem
Divers
Thread ID:
00269003
Message ID:
00269003
Vues:
50
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
Répondre
Fil
Voir

Click here to load this message in the networking platform