sqlsrv_connect

sqlsrv_connect - Opens a connection to a Microsoft SQL Server database
Manual
Code Examples

Example #1 Connect using Windows Authentication.

PHP Version:

Example #2 Connect by specifying a user name and password.

PHP Version:

Example #3 Connect on a specified port.

PHP Version: