Warning: mssql_connect() [function.mssql-connect]:
程序员文章站
2022-05-28 21:50:35
...
错误提示:warning: mssql_connect() [function.mssql-connect]: unable to connect to server: $sa in d:php2.php on line 11 error
下面来看一下解决方法吧,系统是: win2003+mssql2000+php5.23
实现方法:php目录下有没有ntwdblib.dll有没有这个文件?ntwdblib.dll是客户连接库,如果有查看一下版本号是多少,一般会是7.0的,这个只能与mssq 7.0进行连接,我们为了能与我们现数据库教程版本相同就把mssql下的ntwdblib.dll拷贝到你php 所在的目录替换那个7.0的,重起iis就ok了
插曲,如果你的mssql连接有问题可利用php自带了函数 mssql_get_last_message(),来取得错误信息。
本文地址:
转载随意,但请附上文章地址:-)
上一篇: php调用外部exe程序,该如何解决
下一篇: 在XP中怎么下载安装php编译器
推荐阅读
-
PHP提示Warning:phpinfo() has been disabled函数禁用的解决方法
-
消除Warning: Using a password on the command line interface can be insecure的提示
-
Warning: mysqli::__construct(): (HY000/1698): Access denied for user 'root'@'localhost'问题解决
-
Electron – 项目打包报错(1): WARNING: Make sure that .NET Framework 4.5 or later and Powershell 3 or later are installed, otherwise extracting the Electron z
-
php提示Warning:mysql_fetch_array() expects的解决方法
-
Module build failed: Module failed because of a eslint warning
-
AndroidStudio报错:Emulator: I/O warning : failed to load external entity "file:/C:/Users/Administrator/.AndroidStudio3
-
解决:WARNING: You are using pip version 20.0.2; however, version 20.2.2 is available
-
Warning: session_destroy() : Trying to destroy uninitialized sessionq错误
-
PHP错误Warning: Cannot modify header information - headers already sent by解决方法