xml| generation of XML before the introduction of SQL2K has mentioned the SQL2K support for XML, the use of XML statements can easily translate the results of execution into an XML, which can greatly improve the efficiency of the system and development speed, detailed content see books Online.
But the way the XML returned is accessed using ADO (Required ADO 2.6) is different from the original recordset. If you still use the recordset, you can only get an XML Schema in Unicode format without getting the content of the XML.
In fact, this problem is very easy to solve, but I think I am very familiar with ADO, did not look at help carefully, so did not find ADO is the way to get and return XML stream.
The Command object has two properties, called input stream and output stream, and the value of the property is an IUnknown interface. You can assign an XML parser interface to it, or use the request, response, etc. directly. The advantage is that there is no need to generate a recordset, save the data, and thus save the system overhead.
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.