Page 1 of 1

xampp and mssql

PostPosted: 23. May 2006 13:57
by jupela
Hello,
I have installed the xampp and I need to connect through php to a SqlServer database, but I have some errors.
--------------------------------------------------------------
The php script is:
<?php
mssql_connect ( 'servername', 'user', 'password');
?>
---------------------------------------------------------------

And the error is:
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: servername in /opt/lampp/htdocs/prueba_php/prueba_sql.php on line 2

Have I to configurate any file? Someone can help me?

Thanks,

PostPosted: 26. May 2006 08:51
by jupela
The solution is that it's necessary to configure freetds.conf and the 'servername' in the php script has to put the same name that in the freetds.conf.

Thank you Oswald.

PostPosted: 15. February 2007 18:31
by albatroz
As I see, XAMPP for Linux also include support for MSSQL
precompiled?