I am currently using Visual Studio .NET to create an application for an existing database we have.
It uses Pervasive v8 and I have successfully connected using the OleDBAdapters and writing to a dataset.
HOWEVER, the company that created the database (BTRIEVE) way back when used the term DATAFLEX RECNUM ONE for the primary keys in ALL of the tables.
When I try to SELECT that record (example: SELECT JOBS.DATAFLEX RECNUM ONE) I get an error
(Error in SELECT clause near 'RECNUM'.
Unable to parse query text.)
The statement was generated using the Query Builder and I tried to even add a [] around the column name to no avail.
If I remove the DATAFLEX RECNUM ONE from the statement (I have other columns selected) it works fine.
What can I do about the two spaces in the pk field name - short of renaming all of them? (whcih is not an option)
It uses Pervasive v8 and I have successfully connected using the OleDBAdapters and writing to a dataset.
HOWEVER, the company that created the database (BTRIEVE) way back when used the term DATAFLEX RECNUM ONE for the primary keys in ALL of the tables.
When I try to SELECT that record (example: SELECT JOBS.DATAFLEX RECNUM ONE) I get an error
(Error in SELECT clause near 'RECNUM'.
Unable to parse query text.)
The statement was generated using the Query Builder and I tried to even add a [] around the column name to no avail.
If I remove the DATAFLEX RECNUM ONE from the statement (I have other columns selected) it works fine.
What can I do about the two spaces in the pk field name - short of renaming all of them? (whcih is not an option)