First, open in the configuration file php.ini file, ODBC extension:
Delete Php_pdo_odbc.dll this line comment
Ii. Configuring an ODBC data source
1. Open the Administrative Tools icon in the Control Panel.
2. Double-click the data Source (ODBC) icon in it.
3 Select the system DSN tab.
4. Click Add in the System DSN tab.
5. Select Microsoft ODBC for SQL SERVER. Click Done .
6. Configure the data source: Enter the server address-"Select the required Connection database-" Enter the user information--"until the next success.
The connected data source is visible when the connection is successful
Third, after restarting the Apache server, the Code Connection database test in PHP.
The information of the person in the data table is successfully returned in the Web page, the connection, the test succeeds!
php5.5 via ODBC connection sqlserver2005