BookmarkSubscribeRSS Feed
SangaviS
Obsidian | Level 7

We have got a situation where we have to enter DSN for an SQL database which uses dynamic ports. I tried specifying the range of ports using hyphen character like shown below but it gave an error. Can someone help me how we can specify range of ports inside odbc.ini?

Example: Port=1024-2048

4 REPLIES 4
alexal
SAS Employee

What driver are you using? UNIX ODBC or Microsoft ODBC? Connecting to a dynamic port is supported only by Microsoft ODBC driver version 17.4 and higher, please see https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/connection-string-keywords-and-data-sour... and contact Microsoft if needed.

SangaviS
Obsidian | Level 7
We are using unixODBC - FreeTDS. Thank you. This helps understand the situation. Are you aware of any workaround for this situation?


alexal
SAS Employee
No, I'm not aware of any workarounds other than using Microsoft ODBC driver.
KS4NCS
Fluorite | Level 6

Per FreeTDS documentation, you should use the instance name in the config.
http://www.freetds.org/userguide/freetdsconf.html#tab.freetds.conf

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
  • 4 replies
  • 1441 views
  • 2 likes
  • 3 in conversation