BookmarkSubscribeRSS Feed
Helannivas
Quartz | Level 8

Hi,

 

I have a requirement to connect to SQL Server database from SAS. So Before editing the odbc.ini, I have checked whether the SQL server database and port are opened from SAS servr.

 

cat < /dev/tcp/<Server_name>/<Port_no>.

 

And I haven't got connection refused output. So the database and port are opened in SQL server database and I think I can able to establish the connection.

 

Then I have edited the odbc.ini file and created a DSN. And created a SQL Server library in SAS SMC.

 

But while accessing the database , I have got a error that Connection refused ,verify hostname and port number .

 

Can anybody help me on this. Thanks in advance.

1 REPLY 1
LinusH
Tourmaline | Level 20
It's always good to verify the connection using a third party tool.
On Windows you got plenty of options. In UNIX/Linux iSQL is available.
Data never sleeps

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
  • 1286 views
  • 0 likes
  • 2 in conversation