Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange char in column name
Message
From
16/09/2014 02:55:22
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
16/09/2014 02:48:04
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8.1
Network:
SAMBA Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01607500
Message ID:
01607595
Views:
63
>>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]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform