1.找到php安装目录里面的ext文件夹,我这边的路径为D:\phpStudy\php\php-7.0.12-nts\ext,找到php_sqlsrv_7_nts_x86.dll和php_pdo_sqlsrv_7_nts_x86.dll文件,在php.ini中加入这两个扩展
2.下载Microsoft ODBC Driver 11 for SQL Server,地址为 https://www.microsoft.com/en-us/download/details.aspx?id=36434
1.找到php安装目录里面的ext文件夹,我这边的路径为D:\phpStudy\php\php-7.0.12-nts\ext,找到php_sqlsrv_7_nts_x86.dll和php_pdo_sqlsrv_7_nts_x86.dll文件,在php.ini中加入这两个扩展
2.下载Microsoft ODBC Driver 11 for SQL Server,地址为 https://www.microsoft.com/en-us/download/details.aspx?id=36434