PhpSqlServer connection failure problem and solution. 1. confirm the database service activation status. 2. php. enable extension in ini configuration 3. Check database-related version (1) Sql2000. check ntwdblib in php directory and apache bin directory. dl 1. confirm the database service activation status
2. enable extension in php. ini configuration
3. Check database-related versions
(1) in Sql2000, check whether the version of the ntwdblib. dll file under the php directory and apache bin directory is consistent. right-click ntwdblib. dll and check the file properties to see the version. The ntwdblib. dll corresponding to Sql2000 should be Version 7.0
(2) at Sql2005, ntwdblib. dll corresponds to version 8.0.
If the version is incorrect, the link may fail. check carefully.
I have encountered problems when linking to sql2005. after careful troubleshooting and searching, I find a solution, hoping it will be useful to you.
Attachment: the two versions of ntwdblib. dll file. after downloading the file, remove the number in the name and change it to ntwdblib. dll and put it in the corresponding directory.
File packaging
Extension 2 in php. ini configuration open 3. Check database-related version (1) Sql2000 check ntwdblib. dl under php directory and apache bin directory...