Feedback
Did this article resolve your question/issue?

   

Article

Unable to run query with dash in table name using OpenAccess SDK from MS Query

Information

 
TitleUnable to run query with dash in table name using OpenAccess SDK from MS Query
URL Nameunable-to-run-query-with-dash-in-table-name-using-openaccess-sdk-from-ms-query
Article Number000118465
EnvironmentProduct: Openaccess SDK
Version: 8.1
OS: Windows
Database: All supported databases
Application: Microsoft Access, Microsoft Query
Question/Problem Description
Query with a - dash in table names fail with below error message when run from any Microsoft Query tool and OpenAccess SDK ODBC driver.

Same query works fine when run from ODBCISQL or ODBCTest tool.
 
Steps to ReproduceConnect from MS Query tool to OpenAccess SDK ODBC driver and execute the following query

select * from Test-table 
Clarifying Information
Error MessageError: [HY000]Table requested does not exist.[10300]
Defect Number
Enhancement Number
Cause
Microsoft Query requires a square bracket around the tables names with special characters.
Resolution
While executing a query with - dash in table name from Microsoft Query tool add the aquare bracket [] around the table name.

Select * from [test-table]
Workaround
Notes
Last Modified Date8/27/2018 8:44 PM
Files
Disclaimer The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information.

Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages.