PHP Access To An MSSQL Database From Debian with ODBC And FreeTDS

Note:  on some Ubuntu system you could incur on issues (Data source name not found, and no default driver specified) First install the necessary packages: # apt-get install tdsodbc unixodbc php5-odbc ODBC Driver registration: # nano /etc/freetds/tds.driver.template [FreeTDS] Description = ciao Driver = /usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so Seteup = /usr/lib/x86_64-inux-gnu/odbc/libtdsS.so Now the edit the DSN file: # nano …