Connection resource
The SQLSRV extension can be used on the following operating systems: Windows Vista Service Pack 2 or laterWindows Server 2008 Service Pack 2 or laterWindows Server 2008 R2Windows 7
Setup
Required
The SQLSRV extension can be used on the following operating systems:
- Windows Vista Service Pack 2 or later
- Windows Server 2008 Service Pack 2 or later
- Windows Server 2008 R2
- Windows 7
The SQLSRV extension requires that the Microsoft SQL Server 2012 Native Client be installed on the same computer that is running PHP. If the Microsoft SQL Server 2012 Native Client is not already installed, click the appropriate link below to download it:
- Download the x86 package
- Download the x64 package
The SQLSRV download comes 8 driver files, four of which are for PDO support.
The most recent version of the driver is available for download here: SQLSRV download.
For more information about SQLSRV requirements, see SQLSRV System Requirements.
Configure Ini
Resources
Connection resource
A connection resource returned by sqlsrv_connect().
Statement resource
A statement resource returned by sqlsrv_query() or by sqlsrv_prepare().