BookmarkSubscribeRSS Feed
freshstarter
Obsidian | Level 7

Hello,

 

Recently I have installed snowflake odbc driver on linux server and already we had sql server odbc driver installed. Now we have two different odbc.ini file. I have included all the connection parameters in the new odbc.ini file relates to snowflake and updates the library path in sasenv_local file. The connection to snowflake is working fine from SAS libname statement. But the connection to SQL server is not working.

 

I defined the values as like below

 

export ODBCHOME:/sas/AccessClients/9.4/SQLServer:/etc

export LD_LIBRARY_PATH:$ODBCHOME/lib:/etc/snowflake_ODBC/lib:/usr/lib64:$LD_LIBRARY_PATH

export ODBCINI:/sas/AccessClients/9/4/SQLServer/odbc.ini:/etc/odbc.ini

export ODBCINST:/sas/AccessClients/9/4/SQLServer/odbcinst.ini:/etc/odbcinst.ini

export SIMBAINI:/etc/snowflake_ODBC/lib/simba.snowflake.ini

 

/etc is where snowflake driver is installed and SQLServer is under /sas/AccessClients.

 

Kindly suggest how to edit this file to have both the connection working properly. Thanks

1 REPLY 1
Sajid01
Meteorite | Level 14

Hello
The issue appears to be the syntax.
I would prefer to write your content in sasenv_local as follows.

export ODBCHOME=/sas/AccessClients/9.4/SQLServer:/etc
export LD_LIBRARY_PATH=/sas/AccessClients/9.4/SQLServer/lib:/etc/snowflake_ODBC/lib:/usr/lib64:$LD_LIBRARY_PATH
export ODBCINI=/sas/AccessClients/9/4/SQLServer/odbc.ini:/etc/odbc.ini
export ODBCINST=/sas/AccessClients/9/4/SQLServer/odbcinst.ini:/etc/odbcinst.ini
export SIMBAINI=/etc/snowflake_ODBC/lib/simba.snowflake.ini

I assumed that the lib folder for sql server is at  /sas/AccessClients/9.4/SQLServer/lib.
If not please make appropriate changes.
I would recommend that whenever you make changes to this file, get it validated by the Linux Admin for syntax.

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
  • 1 reply
  • 1126 views
  • 0 likes
  • 2 in conversation