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...