也许,这就是连接字符串连接到SQL服务器正确MSSQL的连接字符串
<?php
$myServer = "localhost";
$myUser = "your_name";
$myPass = "your_password";
$myDB = "examples";
?>
//connection to the database
$dbhandle = mssql_connect($myServer, $myUser, $myPass)
or die("Couldn't connect to SQL Server on $myServer");
,但我不知道该怎么在$ myServer上,$ MYUSER输入和$为mypass 如果我想使用Windows身份验证
这是我的服务器的详细信息好心帮我请 Microsoft SQL企业管理 微软公司 版本:8.0
尝试用127.0.0.1 – Akilan
速查手册http://php.net/manual/en/function.mssql-connect.php –