PhpSqlServer connection failure problem and solution _ PHP Tutorial

Source: Internet
Author: User
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.