My Advanced Linux/Advanced Linux 2009. 7. 24. 13:17
리눅스 서버에서 MSSQL 서버의 DB을 끌어오기 위해서는 freetds란 놈이 필요하다.
물론 configure option에 --with-mssql=/freetds(freetds 경로)를 넣어주어야 함은 당연하다.
freetds
freetds-0.61.2
설치
# tar -zxvf
freetds-0.61.2.tar.gz
# cd freetds-0.61.2
# ./configure
--prefix=/usr/local/freetds --with-tdsver=8.0 \
--enable-msdblib --enable-dbmfix
--with-gnu-ld \
--enable-shared
--enable-static
# make
# make install
# cd ..
# vi /etc/ld.so.conf
==> 마지막 줄에
/usr/local/freetds/lib 를 추가
# /sbin/ldconfig
/usr/local/freetds/etc/freetds.conf
파일을 수정
# vi
/usr/local/freetds/etc/freetds.conf
[서버이름]
host = [ms-sql2000
서버아이피]
port
= 1433
tds
version = 8.0