How To Retrieve XML Data by Using a SQL XML Query in an ASP Client (272269)
The information in this article applies to:
- Microsoft Data Access Components 2.6
- Microsoft Data Access Components 2.7
- Microsoft Active Server Pages
- Microsoft SQL Server 2000 (all editions)
- Microsoft Internet Information Server 5.0
- Microsoft XML 2.6
- Microsoft XML 3.0
- Microsoft XML 4.0
This article was previously published under Q272269 SUMMARY
When you run an ADODB command stream and specify SQL SELECT with the FOR XML AUTO clause, an XML document stream is fetched from SQL Server, sent to the response object, and piped to the client.
Properties to be set for the properties of the ADODB.Command collection Output Stream and Dialect are as follows:
- Output Stream: Designates where the resulting XML data stream will be piped.
- Dialect: Defines the syntax and general rules that the provider uses to parse the string or stream. Setting the command language dialect specifies how the Microsoft OLE DB Provider for SQL Server interprets the command text that is received from ADO. The dialect is specified by a globally uniqe identifier (GUID) and is set using the Dialect property of the Command object.
REFERENCES
For SQL Server 2000 and schema, see SQL Server Books Online
For information on XML, see the following Microsoft Web site:
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbhowto KB272269 |
---|
|