Microsoft KB Archive/914640

= Error message when you try to convert a string to the XML data type in SQL Server 2005: &quot;Cannot bind to the reserved namespace&quot; =

Article ID: 914640

Article Last Modified on 4/25/2006

-

APPLIES TO


 * Microsoft SQL Server 2005 Standard Edition
 * Microsoft SQL Server 2005 Developer Edition
 * Microsoft SQL Server 2005 Enterprise Edition
 * Microsoft SQL Server 2005 Workgroup Edition
 * Microsoft SQL Server 2005 Express Edition

-



Bug #: 383622 (SQLBUDT)



SYMPTOMS
When you try to convert a string to the XML data type in Microsoft SQL Server 2005, you may receive the following error message:

An error occurred while executing batch. Error message is: Cannot bind to the reserved namespace.

This problem occurs when you specify a prefix other than &quot;xml&quot; to the namespace &quot;http://www.w3.org/XML/1998/namespace&quot; in the string.



CAUSE
This problem occurs because the XML specification does not allow the namespace &quot;http://www.w3.org/XML/1998/namespace&quot; to be bound to any prefix other than &quot;xml&quot;.



Service pack information
To 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 How to obtain the latest service pack for SQL Server 2005



WORKAROUND
To work around this problem, do not bind the namespace &quot;http://www.w3.org/XML/1998/namespace&quot; to any prefix other than &quot;xml.&quot; Additionally, the prefix is case sensitive. Therefore, &quot;XML&quot; will not work.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section. This problem was first corrected in Microsoft SQL Server 2005 Service Pack 1.

Keywords: kbprb kbexpertiseadvanced kbsql2005xml kbsql2005sp1fix KB914640

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.