The FreeTDS library provides rich functionality for working with MS SQL Server databases.
This library makes the work with MS SQL Server databases such easier as with every MySQL database.
<?php
---
$num= mssql_connect($sqlserver , $sqluser , $sqlpass );
echo ("ConnectID: $numero<br>n");
...
$result=mssql_query('select * from table',$num );
...
mssql_close($num);
---
?>
The FreeTDS could be downloaded from this address: http://www.freetds.org/