ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"brew install unixodbcbrew install freetds2. Alter ODBC files.
[MYDSN]Driver = FreeTDSServer = 10.127.24.117Port = 2408[FreeTDS]Driver = /usr/local/lib/libtdsodbc.so3. Connect to the database in STATA
set odbcmgr unixodbcodbc load, dsn("MYDSN") user("test") password("test") exec ("select * from CAT1.dbo.shreadraw")If data populated into stata, then the connection is successful.