Connecting to the Server

Connecting to the Server

 

DownloadDownload PHP Driver

The topics in this section describe the options and procedures for connecting to SQL Server with the Microsoft Drivers for PHP for SQL Server.

The Microsoft Drivers for PHP for SQL Server can connect to SQL Server by using Windows Authentication or by using SQL Server Authentication. By default, the Microsoft Drivers for PHP for SQL Server try to connect to the server by using Windows Authentication.

TopicDescription
How to: Connect Using Windows AuthenticationDescribes how to establish a connection by using Windows Authentication.
How to: Connect Using SQL Server AuthenticationDescribes how to establish a connection by using SQL Server Authentication.
How to: Connect on a Specified PortDescribes how to connect to the server on a specific port.
Connection PoolingProvides information about connection pooling in the driver.
How to: Disable Multiple Active Resultsets (MARS)Describes how to disable the MARS feature when making a connection.
Connection OptionsLists the options that are permitted in the associative array that contains connection attributes.
PHP Driver for SQL Server Support for LocalDBDescribes Microsoft Drivers for PHP for SQL Server support for the LocalDB feature, which was added in SQL Server 2012.
PHP Driver for SQL Server Support for High Availability, Disaster RecoveryDiscusses how your application can be configured to take advantage of the high-availability, disaster recovery features added in SQL Server 2012.
Connecting to Windows Azure SQL DatabaseDiscusses how to connect to a SQL Azure Database.

Programming Guide for PHP SQL Driver
Example Application (SQLSRV Driver)

Community Additions

ADD
Show:
© 2016 Microsoft