Can PHP also connect SQL2008 with MSSQL?

Source: Internet
Author: User
php5.3.+, Server Windows server2008 database SQL2008


can now be connected with sqlsrv, but the previous code is used by the MSSQL connection of 2000, thinking is not possible to change the code AH. Ask what you need to download, how to modify the parameters


Reply to discussion (solution)

PHP 5.3 Configuration MSSQL (SQL Server)

Write a set of MSSQL functions for the SQLSRV function group (mainly the change of parameter order and default item)
And then you don't have to change your original program anymore.

PHP 5.3 Configuration MSSQL (SQL Server)

It means you can't use the previous MSSQL. Good pity ...

Write a set of MSSQL functions for the SQLSRV function group (mainly the change of parameter order and default item)
And then you don't have to change your original program anymore.

It means that MSSQL couldn't support it before.
That feels good trouble. My website is not too big. Replace it directly with sqlsrv ...

This is the time to see the benefits of encapsulating database operations.

This is the time to see the benefits of encapsulating database operations.

The road ahead is so far. Learn slowly, or. What is recommended by moderators ...

Take the chance to change the database operations to database class operations (direct encapsulation is possible)
Both learned knowledge and solved the problem.

Take the chance to change the database operations to database class operations (direct encapsulation is possible)
Both learned knowledge and solved the problem.

I'll try it first.

  • Related Article

    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.