Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange char in column name
Message
De
16/09/2014 02:55:22
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
16/09/2014 02:48:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8.1
Network:
SAMBA Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01607500
Message ID:
01607595
Vues:
62
>>Hi ALL,
>>
>>I need to read / write to an ACCESS database.
>>
>>I run into follwing:
>>
>>A column is named, as reported by SQLCOLUMNS(...,'Native'), Field "C".
>>
>>How do I adress this in a CA?
>>SELCTCMD is like 'SELECT Table.[Field "C"] FROM Table'
>>I get SQL error 1526
>>Error in expression Table.[Field [C]]
>
>Use back quotes `:
>
>SQLEXEC(m.lnODBC,'SELECT Cur1.`Field "C"` AS FieldC FROM myTable AS Cur1')
>
>This is the standard approach for Microsoft ODBC drivers when dealing with column names that contain characters others than simple letters, numbers and underscores.


That solves it.

muito obrigado
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform