Skip to content

Table names in a SELECT including a hypen will modifed by adding spaces #20

@GStegemann

Description

@GStegemann

Hi Edwig,

a table name with an hyphen and/or period used in an SELECT statement will be modified by the ODBCQueryTool.

Example:

SELECT lotId,state,qty,p,rk,sortReal,queueTime,location FROM "DispatchList_64-GU.txt" WHERE lotId LIKE '18%.%';

throws the following error:

SELECT lotId , state , qty ,p, rk , sortReal , queueTime , location FROM "DispatchList_64 - GU .txt"..... : Error in SQL statement: ODBC-call returned [-1] : [42S02][-1305][Microsoft][ODBC Text Driver] Das Microsoft Jet-Datenbankmodul konnte das Objekt 'DispatchList_64 - GU .txt' nicht finden. Stellen Sie sicher, dass das Objekt existiert und dass die Namens- und Pfadangaben richtig eingegeben wurden.

The file, i.e. the table, does exist. Therefore I assume that the modified table name causes this error. I think a quoted table name should not be modified by the ODBCQueryTool. See also attached screenshot.

ODBCQuery from Jaime de los Hoyos M. accepts such table names.

Best regards,
Gerhard

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions