hanshasuro
Programmer
I am in the unfortunate position of having to deal with a Foxpro DB that has 'date', 'group', 'update' and other Foxpro/SQL reserved keywords as field names. I need to access it through a JDBC/ODBC connection in a Java application. This requires me to write SQL code to affect the DB. I think you might begin to see the problem with a statement like this:
e.g.
UPDATE customer SET update = d{'12/12/2002'} WHERE acctnum = 1234
The following error message is returned:
[Microsoft][ODBC Visual FoxPro Driver]Command contains unrecognized phrase/keyword.
When dealing with a SQL Server 2000 DB, it is possible to refer to a field which has been so unfortunately named by wrapping the field name in square brackets, like [date]. Is there a similar workaround for Foxpro? The square bracket approach is rejected. This database is part of an established back office application so changing the field names is not an option.
Thanks!
e.g.
UPDATE customer SET update = d{'12/12/2002'} WHERE acctnum = 1234
The following error message is returned:
[Microsoft][ODBC Visual FoxPro Driver]Command contains unrecognized phrase/keyword.
When dealing with a SQL Server 2000 DB, it is possible to refer to a field which has been so unfortunately named by wrapping the field name in square brackets, like [date]. Is there a similar workaround for Foxpro? The square bracket approach is rejected. This database is part of an established back office application so changing the field names is not an option.
Thanks!