PHP5.3 连接SQLSERVER 2000
$dbhost = "127.0.0.1,1433";
$dbuser = "sa"; //你的mssql用户名
$dbpass = ""; //你的mssql密码
$dbname = "aa"; //你的mssql库名
$connect=odbc_connect("Driver={SQL Server};Server=$dbhost;Database=$dbname","$dbuser","$dbpass");
$sql="select * from table";
$exec=odbc_exec($connect,$sql);
while($row = (odbc_fetch_array($exec)))
{
var_dump($row);
}