Installation

L'extension SQLSRV est activée en ajoutant la bibliothèque DLL appropriée dans votre dossier d'extensions PHP et en ajoutant l'entrée correspondante dans votre fichier php.ini. Le téléchargement de SQLSRV est fourni avec 8 pilotes, dont 4 dédiés au support de PDO.

La version la plus récente du pilote est disponible au téléchargement ici : » téléchargement de SQLSRV.

Pour plus d'informations sur les pré-requis SQLSRV, reportez-vous au chapitre sur les » pré-requis du système SQLSRV.

Depuis la version 4.0, l'extension SQLSRV n'est compatible que lorsque PHP 7.0 fonctionne sur Linux ou Windows.

add a note add a note

User Contributed Notes 3 notes

up
-2
grant at seljax dot com
5 years ago
Running PHP 7.2 on IIS 10, I had to use the IIS Web Platform Components wizard to install the Microsoft PHP drivers version 5.2 x64 to get this command to work.  Manually installing 4.0 drivers did not work.
up
-2
simon
10 years ago
SQLSRV doesn't use mssql_connect - it is it's own extension, therefore to connect you'd use sqlsrv_connect:

http://www.php.net/manual/en/function.sqlsrv-connect.php
up
-6
denny
7 years ago
PECL packages for Linux SQLSRV and PDO_SQLSRV drivers (4.0.7) are available now.
https://github.com/Microsoft/msphpsql/releases
To Top