Native PHP connection remote SQL Server 2008 Problem Consult

Source: Internet
Author: User
Tags microsoft drivers for php for sql server mssql
Native environment: Wampserver Version 2.4
Remote database: SQL Server 2008


Reply to discussion (solution)

PHP 5.3 Below can be extended with MSSQL
php5.3+ extension with sqlsrv

PHP 5.3 Below can be extended with MSSQL
php5.3+ extension with sqlsrv

With sqlsrv extension, what configuration does the remote database need?

I've only installed extensions in my wamp, and I've installed a Microsoft SQL Server R2 Native Client.

But the test is still a hint: Fatal error:call to undefined function sqlsrv_connect () in D:\wamp\www\test\testsql2008.php on line 15

1, the remote database needs to open remote connection permissions.

2, local PHP also have to install sqlsrv extension. Open method Online Search, you need to pay attention to your PHP version.

I'm faking it. Microsoft Drivers for PHP for SQL Server 3.0
According to the above requirements, also do the same kind of (such as)

http://bbs.csdn.net/topics/390720089
With the phpstudy extension inside has been given well, hook on it can be.

Your extension did not open successfully.

The problem is resolved, describe the Web server environment that you configured:
1, System version: Win7 Ultimate version 64-bit
2,php-5.3.2-nts-win32-vc9-x86 (an extension was installed in IIS using Phpmanager: Php_pdo_sqlsrv_53_nts_vc9.dll php_sqlsrv_53_nts_vc9.dll)
3,phpmanagerforiis-1.2.0-x64
4, using fasccgi mode
5, install Microsoft SQL Server R2 Native Client

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