Search This Blog

Wednesday, March 9, 2016

Debian Jessie PHP access SQL Server Database

Use FreeTDS and unixODBC for this task.

  1. Installation of the freetds packages with apt-get


  2. apt-get install freetds-common freetds-bin unixodbc php5-sybase
    service apache2 restart



  3. Add configuration into /etc/freetds/freetds.conf


  4. # Kinamo SQL Server
    [test_sqlserver]
    host = milliondollarserver.com
    port = 1433
    tds version = 8.0


No comments:

Post a Comment