XML and SQL Server 2000
A SQL Server virtual root is exactly like a virtual root of a Web server. You can configure a root directory anywhere in the directory structure and access a file in it with a simple URL call to the name of the root directory and file. The main reason for doing this on SQL Server is to point the ISAPI.DLL dynamic library to the proper starting point it needs to access template and schema files. After the virtual root is properly registered and virtual names are set up, it is possible to generate XML documents from data stored in SQL Server 2000 through queries in a URL. It is necessary to specify the names of the IIS and virtual directory in the URL; however, login, password, permissions, and other necessary information are contained in the virtual directory. This information grants us the ability to establish a connection to a predetermined database and execute the query contained in the URL. Queries that can be contained in the URL include
System Requirements
The IIS Virtual Directory Management for SQL Server Utility runs on any edition of Microsoft Windows NT 4.0 or Microsoft Windows 2000.The following are Windows NT 4.0 requirements:
Virtual Names
A virtual name must be one of three different types:
This virtual name is the entity that allows a template file, mapping schema, or database object (table or view) to be part of the URL used to generate XML documents. The URL then executes a template file or an XPath query against a mapping schema file, or it directly accesses a database object. The type of virtual name specified in the URL determines the type of file specified in the URL. For example, http://IISServer/northwind/TemplateVirtualName/Template.xml demonstrates that because TemplateVirtualName was previously defined as having the virtual name type template, file Template.xml is a template file.
|