Hello everyone, I have this system with SAS 9.4 installed. I need to register a library for connection to a Microsoft Sql Server database to use in SAS Data Integration. The system administrators have created an ODBC System DSN, which is configured to use Sql Server authentication. I cannot use an ODBC library because the ODBC engine for SAS has not been installed or licensed. In SAS Management Console I see it is possible to register a database server of type "Microsoft SQL Server" and a library of type "Microsoft SQL Server Library", as shown below Following the documentation LIBNAME Statement Specifics for Microsoft SQL Server, I've registered a libref using the following command: libname mssqllib sqlsvr
noprompt="uid=MY_USER;
pwd=MY_PASSWORD;
dsn=MY_DSN_NAME;"
stringdates=yes schema=DBO; Then I am a bit lost. I've tried to create in SMC a database server of type "Microsoft SQL Server" specifying "MY_DSN_NAME" as Datasrc, then I've created a Microsoft SQL Server Library using this server and "mssqllib" as libref, but when I've tried to register some tables on that library I got Sql Server authentication error in the log: ERROR: CLI error trying to establish connection: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user
'sasadm@saspw' It seems it's using the user logged to the Management Console instead of the user specified in the LIBNAME statement (MY_USER, MY_PASSWORD). Can someone provides the required steps to properly register a Microsoft SQL Server Library on SAS? In the documentation I've found only the steps to register an ODBC library, but I cannot follow that way since the ODBC engine was not installed/licensed in this SAS installation. Thanks for any help!
... View more