SQL Server Error Msg 458 – Cannot create the SELECT INTO target table “%.*ls” because the xml column “%.*ls” is typed with a schema collection “%.*ls” from database “%.*ls”. Xml columns cannot refer to schemata across databases.

In this blog post, let’s learn about the error message “458 – Cannot create the SELECT INTO target table “%.*ls” because the xml column “%.*ls” is typed with a schema collection “%.*ls” from database “%.*ls”. Xml columns cannot refer to schemata across databases.” in Microsoft SQL Server, the reason why it appears and the solution to fix it.

SQL Server Error Message

458 – Cannot create the SELECT INTO target table “%.*ls” because the xml column “%.*ls” is typed with a schema collection “%.*ls” from database “%.*ls”. Xml columns cannot refer to schemata across databases.

Reason for the Error

To be update soon…

Solution

To be update soon…