FreeTDS + unixODBC or iODBC
Install FreeTDS first, then configure one of the two ODBC engines to use FreeTDS as your ODBC driver. Then use the command line interface for the ODBC engine.
unixODBC has isql, iODBC has iodbctest
You can also use your favorite programming language (I have successfully used Perl, C, Python and Ruby to connect to MSSQL)
I personally use FreeTDS + iODBC:
$more /etc/freetds/freetds.conf [10.0.1.251] host = 10.0.1.251 port = 1433 tds version = 8.0 $ more /etc/odbc.ini [ACCT] Driver = /usr/local/freetds/lib/libtdsodbc.so Description = ODBC to SQLServer via FreeTDS Trace = No Servername = 10.0.1.251 Database = accounts_ver8
Vinko Vrsalovic Sep 29 '08 at 16:14 2008-09-29 16:14
source share