I have tried both mssql and mssql_n. Same error every time.
Here is the error. [Thu Nov 13 16:04:17 2014] [error] [client 10.26.15.27] PHP Warning: mssql_connect(): Unable to connect to serve
r: sql-vs2\\prd2:56253 in /srv/skc/lib/dml/mssql_native_moodle_database.php on line 140, referer: http://anbl.kum
Here is my freetds.conf file
# This file is installed by FreeTDS if no file by the same
# name is found in the installation directory.
#
# For information about the layout of this file and its settings,
# see the freetds.conf manpage "man freetds.conf".
# Global settings are overridden by those in a database
# server specific section
[global]
# TDS protocol version
; tds version = 4.2
# Whether to write a TDSDUMP file for diagnostic purposes
# (setting this to /tmp is insecure on a multi-user system)
; dump file = /tmp/freetds.log
; debug flags = 0x04
# Command and connection timeouts
; timeout = 10
; connect timeout = 10
# If you get out-of-memory errors, it may mean that your client
# is trying to allocate a huge buffer for a TEXT field.
# Try setting 'text size' to a more reasonable limit
text size = 64512
;--- Custom MSSQL server name ---
; THIS CAN BE ANY NAMED SERVER REFERENCE YOU WANT TO CREATE
[anbl]
; This is the host name of the MSSQL server
host=sql-vs2
;host=sql-vs2\prd2
instance= prd2
; This is the port number to use
port=56253
; This is the TDS version to use for anything over Server 2000
tds version=8.0
Yes, I am building FreeTDS from source using ./configure --prefix=/usr/local/ --with-tdsver=7.2 --with-unixodbc=/usr/ --enable-msdblib