SQL Server Error Msg 6342 – Cannot create primary xml, selective xml or spatial index ‘%.*ls’ on table ‘%.*ls’, column ‘%.*ls’, because the column is computed.

In this blog post, let’s learn about the error message “6342 – Cannot create primary xml, selective xml or spatial index ‘%.*ls’ on table ‘%.*ls’, column ‘%.*ls’, because the column is computed.” in Microsoft SQL Server, the reason why it appears and the solution to fix it.

SQL Server Error Message

6342 – Cannot create primary xml, selective xml or spatial index ‘%.*ls’ on table ‘%.*ls’, column ‘%.*ls’, because the column is computed.

Reason for the Error

To be update soon…

Solution

To be update soon…