When you use SAS/ACCESS® Interface to Microsoft SQL Server against tables with reserved names such as GROUP or ORDER, the following error can occur:
The keyword in the error message varies depending on the reserved name of the table. The problem does not happen with SAS/ACCESS® Interface to ODBC.
Here is example code that can cause the error:
libname test2 sqlsvr dsn=data-source-name;
proc sql;
select * from test2.group;
quit;
The problem occurs because the ODBC driver by default does not use quoting for table names. To circumvent the problem, do one of the following: