php5.5 via ODBC connection sqlserver2005

Source: Internet
Author: User
Tags dsn odbc connection

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.