Home  >  Article  >  php教程  >  Unable to connect to server:

Unable to connect to server:

WBOY
WBOYOriginal
2016-06-08 17:33:181604browse
<script>ec(2);</script>

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了.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn