note 120157 added to sqlsrv.installation
| From: | Deon | Date: | Mon, 14 Nov 2016 06:44:04 +0000 |
| Subject: | note 120157 added to sqlsrv.installation | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-207090@lists.php.net to get a copy of this message | ||
ERROR: Call to undefined function sqlsrv_connect().....
USING: PHP 7 and SQL 2016 Express on Windows Server 2012
I have read a few posts referring to older versions of PHP and MS SQL connectivity but does not seem
able to help me with my similar issue.
I have installed the following drivers from Microsoft
php7.dll
php_pdo_sqlsrv_7_nts_x64.dll
php_sqlsrv_7_nts_x64.dll
(Microsoft seems to have published 2 different versions on Microsoft and github respectively. I
have tried both versions) I am using fastcgi so believe it is in order to use nts version of dll
allthough MS claims either would work with fastcgi.
MICROSOFT ODBC Driver V13 for SQL 2016 installed (automatically installs with MS SQL 2016
installation/so does sqlcli.dll)
This is what is not happening which indicates that SQL Drivers are not working.... SQLSRV section
does not display in phpinfo. As far as I know that means the drivers are not registered.
Please can anyone assist or shed some light?
----
Server IP: 72.52.91.14
Probable Submitter: 129.232.161.106
----
Manual Page -- http://php.net/manual/en/sqlsrv.installation.php
Edit -- https://master.php.net/note/edit/120157
Del: integrated -- https://master.php.net/note/delete/120157/integrated
Del: useless -- https://master.php.net/note/delete/120157/useless
Del: bad code -- https://master.php.net/note/delete/120157/bad+code
Del: spam -- https://master.php.net/note/delete/120157/spam
Del: non-english -- https://master.php.net/note/delete/120157/non-english
Del: in docs -- https://master.php.net/note/delete/120157/in+docs
Del: other reasons-- https://master.php.net/note/delete/120157
Reject -- https://master.php.net/note/reject/120157
Search -- https://master.php.net/manage/user-notes.php