1.安装
Ubuntu:
sudo apt-get install git automake autoconf make gcc perl libtool pkg-config
git clone https:
./autogen.sh
make
sudo make install
Centos:
rpm -Uvh http:
gpg --quiet --with-fingerprint /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
yum install freetds
2.修改配置文件
Ubuntu:
sudo vi /usr/local/etc/freetds.conf
[ser2008]
host = 192.168.11.252
port = 1433
tds version = 8.0
client chaeset = UTF-8
Centos:
/etc/freetds.conf
[ser2008]
host = 192.168.11.254
port = 1433
tds version = 8.0
client chaeset = UTF-8
3.测试
/usr/local/bin/tsql -S ser2008 -U sa -P password