sqlsrv_connect issueRSS

1 reply

Last post Feb 06, 2017 09:52 AM by Yuk Ding

  • sqlsrv_connect issue

    Feb 05, 2017 09:51 PM|TimMac|LINK

    I am getting the "Call to undefined function sqlsrv_connect()" error using the  new drivers. I have read many, many posts on other sites about this problem, but still cannot get it resolved.

    PHP 7.0.15

    Windows 10

    IIS Express 10

    I am using "extension=php_pdo_sqlsrv_7_nts_x64.dll" in my php.ini file

    phpinfo() produces a section for PDO and pdo_sqlserv. There is no section for sqlserv. The registered php streams does not have any reference to sqlserv.

    Any ideas?

  • Re: sqlsrv_connect issue

    Feb 06, 2017 09:52 AM|Yuk Ding|LINK

    Hi TimMac,

    Have you installed the Microsoft drivers for PHP for SQL in IIS?

    This link also provide several solution for this issue:

    http://stackoverflow.com/questions/22015179/fatal-error-call-to-undefined-function-sqlsrv-connect

    Best Regards,

    Yuk Ding

    Yuk Ding

    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue.