Install ODBC and MS SQL Server Client for Erlang
Here we are connecting to MS SQL Server 2008 on MS Windows XP from Erlang on Debian Linux.
Part 1
Install utilities (FreeTDS SQL client):
Try to connect with the
tsql
command from the freetds-bin
package:
or (with actual values for me):
If you see the counter (1, 2, 3, …), most likely tsql is unable to connect to the indicated server. Check the firewall’s settings.
sqsh
is an alternative for tsql
(more powerful).Part 2
Install the ODBC client driver.
Problems? Part 2a
tdsodbc
uses unixodbc
library, that conflicts with libiodbc2
. libiodbc2
is a dependency for soprano, that is a dependency for the most of KDE applications.
So, you cannot use the KDE and UnixODBC in Debian (the bug from 2011 year).
This conflict can be fixed, downloading the patched versions of the packages from here:
If you don’t use KDE or the bug was fixed, skip this step.
Part 3
Update the config files:
/etc/odbc.ini
/etc/odbcinst.ini
Test it:
Part 4
Try it from Erlang:
댓글 없음:
댓글 쓰기