sqlsrv_connect

Example

 resource sqlsrv_connect ( string $serverName [, array $connectionInfo ] ) 

Description

Opens a connection to a Microsoft SQL Server database. By default, the connection is attempted using Windows Authentication. To connect using SQL Server Authentication, include "UID" and "PWD" in the connection options array.

Return Values

A connection resource. If a connection cannot be successfully opened, FALSE is returned.