SQL Server Error Msg 6366 – Invalid type for element ‘%s’. SQL Server does not permit the built-in XML Schema types ‘ID’ and ‘IDREF’ or types derived from them to be used as the type of an element. %S_MSG %s

In this blog post, let’s learn about the error message “6366 – Invalid type for element ‘%s’. SQL Server does not permit the built-in XML Schema types ‘ID’ and ‘IDREF’ or types derived from them to be used as the type of an element. %S_MSG %s” in Microsoft SQL Server, the reason why it appears and the solution to fix it.

SQL Server Error Message

6366 – Invalid type for element ‘%s’. SQL Server does not permit the built-in XML Schema types ‘ID’ and ‘IDREF’ or types derived from them to be used as the type of an element. %S_MSG %s

Reason for the Error

To be update soon…

Solution

To be update soon…