I am trying to migrate a DBF into a SQL table and am having a 'keyword' problem. The DBF contains an integer field called 'key'. I've created the SQL table with that value (actually [key]) and it works fine.
The problem is when I try to create a VFP Remote view using the view designer it appears to choke on that column name. The message I get is "Connectivity error: [Microsoft][ODBC SQL Server Drive][SQL Server]Incorrect syntax near the keyword 'key'.
I've tried all sorts of combinations when defining the remote view: table.[key] as key, table.[key] as [key], [table.key] as key, and [table.key] as [key] - all without success.
How can I get the view created without changing the column name?
Steve
The problem is when I try to create a VFP Remote view using the view designer it appears to choke on that column name. The message I get is "Connectivity error: [Microsoft][ODBC SQL Server Drive][SQL Server]Incorrect syntax near the keyword 'key'.
I've tried all sorts of combinations when defining the remote view: table.[key] as key, table.[key] as [key], [table.key] as key, and [table.key] as [key] - all without success.
How can I get the view created without changing the column name?
Steve