Unable to connect to server:
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: 这个错误很多人都提到,现在我来写写我是解决个办法了.
首先说一下我的系统:winxp mssql2000 php5.23
先查查你的php目录下有没有ntwdblib.dll有没有这个文件?ntwdblib.dll是客户连接库,如果有查看一下版本号是多少,一般会是7.0的,这个只能与mssql 7.0进行连接,我们为了能与我们现数据库版本相同就把mssql下的ntwdblib.dll拷贝到你php 所在的目录替换那个7.0的,重起apache就OK了.
您可能感兴趣的文章:
Unable to connect to server:
Warning: mssql_connect() [function.mssql-connect]:
ERROR 2003:Can’t connect to MySQL server on ‘localhost’ (10060)
新浪SAE云平台如何使用codeigniter数据库配置?
ERROR 2002 (HY000): Can't connect to local MySQL
PHP无法读取sql server数据表
zf中Invalid command 'RewriteEngine'错误的解决办法
php 打开连接并选择数据库的实例代码
php使用smtp发送邮件的实现代码
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move