Article ID: 914596 - Last Review: November 22, 2007 - Revision: 2.4 The incorrect type for the union element is returned when you run XQuery against XML data that contains the union element in SQL Server 2005On This PageSYMPTOMSConsider the following scenario. You specify the value of the xsi:type attribute of a union element. Then, you use XQuery to query against the XML data that contains the union element. In this scenario, the query returns the incorrect type for the union element.
CAUSE This problem occurs because the value of the xsi:type attribute of the union element will be the primitive base type of the value. During XML serialization, the primitive base type that is actually set for the value of the xsi:type attribute is returned. RESOLUTIONService pack informationTo resolve this problem, obtain the latest service pack for Microsoft SQL Server 2005. For more information, click the following article number to view the article in the Microsoft Knowledge Base:913089
(http://support.microsoft.com/kb/913089/
)
How to obtain the latest service pack for SQL Server 2005
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. This problem was first corrected in Microsoft SQL Server 2005 Service Pack 1. MORE INFORMATIONSteps to reproduce the problem
| Article Translations
|
Back to the top
