Skip to content

dbSendQuery() not working with MS SQL Server 2022 new build version #900

@mplex

Description

@mplex

Recently, the Microsoft SQL Server I am using has been upgraded from version 16.0.1000.6 to version 2022 (16.00.4175), and the dbSendQuery() function started to produce the error message:

Error: nanodbc/nanodbc.cpp:1769: 42000: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Invalid object name '<TABLENAME>'.  [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Statement(s) could not be prepared. 
<SQL> 'SELECT * FROM <TABLENAME>'

I tested the query in the same R session with other databases running older versions, and they worked without issues. I am using version 1.2.3 of the "DBI" package from CRAN.

I'm wondering if this might be a bug that requires a patch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions