BookmarkSubscribeRSS Feed
spillemm
Calcite | Level 5

My team is currently migrating from SAS Enterprise Guide to SAS Grid and I am attempting to transfer my frequently used programs to the Grid. This is how I connect to a specific server in SAS Enterprise Guide:

PROC SQL;
CONNECT TO SQLSVR AS sasqrm (user=&eid_sqlconn password=&pwd_sqlconn
                                        datasrc=servername);

This connection string is not effective in SAS Grid. 

The code below was my best attempt at connecting to this server in SAS Grid based off of other questions asked with SAS community. When I run the code I receive this error: "ERROR: CLI error trying to establish connection: [DataDirect][ODBC lib] Driver Manager Message file not found. Please check for the
value of InstallDir in your odbc.ini."

libname abc odbc noprompt ="uid=&eid_sqlconn; pwd=&pwd_sqlconn;dsn=servername;
DRIVER=SQL Server Native Client 11.0;
Trusted_Connection=yes" DATABASE = database_name schema = dbo;

Is there an obvious error I'm making in this connection string? 

5 REPLIES 5
Kiranmadhu
Calcite | Level 5

Check odbc.ini file under SASHome/MSSQLODBC/ for what driver your connection is pointing to..

your driver below is giving the description not the actual driver file location, it should be something like, Driver =$SASHome/MSSQLODBC/lib/XXX.so

SASKiwi
PROC Star

What OS is your SAS Grid running on versus your current SAS server? Are both SAS 9.4? What SAS product are you using to connect to SQL Server? Your existing connection appears to be using SAS/ACCESS to SQL Server whereas your SAS Grid test is using SAS/ACCESS to ODBC. Is this the first attempt to get SAS Grid working with SQL Server or was it working and now it isn't?

Sajid01
Meteorite | Level 14

Looks like you are having Data Direct odbc drivers.
Please review the documentation.

Patrick
Opal | Level 21

Your "old" code should continue to work "as-is". It's just some install & config that still needs to be done as part of migration.

Moving to a SAS Grid indicates that you're working in a company big enough to have an IT department with a SAS Admin. Contact these people. They need to support you/make it work for you.

Acamacho85
Calcite | Level 5

You have mentioned you are working in GRID, so make sure the configuration is done in every node of the GRID.

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 5 replies
  • 1420 views
  • 1 like
  • 6 in conversation