reference
http://blog.mcmoyer.com/2009/2/21/getting-freetds-to-work-on-centos-5-2
yum install freetds-devel unixODBC-devel
vim /etc/freetds.conf
- in the global section change “tds version” to 8.0
vim /etc/odbcinst.ini<br /><br />—add an entry for FreeTDS<br />[FreeTDS]<br />Description = ODBC for SqlServer<br />Driver = /usr/lib/libtdsodbc.so<br />Setup = /usr/lib/libtdsS.so<br />FileUsage = 1<br /><br />
tsql -S <server-ip> -U <username> -P <password><br />you will now be in a shell and can test is by doing this<br />use <actual database name><br />go<br />select * from <actual table name><br />go<br /><br />