My laravel 4 app is retrieving data from MSSQL 2012 server. It is working fine on Windows but deployed on CentOS I got the following error:
Next exception 'Illuminate\Database\QueryException' with message 'SQLSTATE[HY000]: General error: 4004 General SQL Server error: Check messages from the SQL Server [4004] (severity 16) [(null)]
Checked in the MSSQL error mappings and the exact error is:
Unicode data in a Unicode-only collation or ntext data can not be sent to clients using DB-Library (z. B. isql) or ODBC version 3.7 or earlier use.
After googling the only thing I found was too low freetds version and I changed it from 4.2 to 7.0 in the etc/freetds.conf - nothing changes. Please advise what might be the problem here.