Access SQLServer2000 database through HTTP _ PHP Tutorial

Source: Internet
Author: User
Access the SQLServer2000 database through HTTP. One of the new features of MicrosoftSQLServer2000 is the support for XML, so users can directly access the SQLServer2000 database with the XML function through HTTP. The following describes the implementation method. One of the new features of Microsoft SQL Server 2000 in the system is the support for XML, so users can directly access SQL with XML functions through HTTP
Server2000 database. The following describes the implementation method.
System environment: Windows2000 Server (including IIS) MS SQL
Server2000
Database: sample of the classic database attached to SQL Server2000: NorthWind
1. configure IIS and SQL
Server virtual
Domains;
1. create a file directory
Open Windows Resource Manager and create the directory northwind under Inetpubwwwroot:
C: Inetpubwwwrootorthwind
Create two subdirectories, template and schema, in the northwind directory:
C: Inetpubwwwrootwindemplate, used to place XML templates;
C: InetpubWwwrootwindschema, used to place schema files.
2. map the virtual directory of IIS
Select "Configure" in the SQL program group
SQL XML Support in
IIS, select "new"> "virtual path" under the default site, and then perform standard configuration in five steps.
(1) on the "General" page, enter the virtual path name "northwind" and map it to the actual hard disk path. The result is shown in the figure.
Alt = "" hspace = 0 src = "/upimg/20070212/11 g214qpef1n1_jpg" align = baseline
Border = 0>

(2) on the "Security" page, select the logon account and password. In this example, the system account sa is used. The result is shown in the figure.
Align = baseline border = 0>

(3) on the "Data Source" page, select SQL
Server name or IP address, and select a database. The result is shown in the following figure.
Align = baseline
Border = 0>

(4) on the "Settings" page, select "allow URL query", "allow template query", "allow XPath", and "allow Post". The result is shown in the figure below.
Align = baseline border = 0>

(5) in the "Virtual
On the Names page, define Template, Schema, and Dbobject respectively, and specify the actual hard disk path.
Align = baseline border = 0>

Then, confirm and close the window. Result.
Align = baseline width = 500
Border = 0>

One of the new features of http://www.bkjia.com/PHPjc/631161.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/631161.htmlTechArticleMicrosoft SQL Server 2000 is to support XML, so users can directly access the SQL Server2000 database with XML function through HTTP. The following describes the implementation method. System...

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.