MSSQLSERVER_556

Applies to: SQL Server

Details

Attribute Value
Product Name SQL Server
Event ID 556
Event Source MSSQLSERVER
Component SQLEngine
Symbolic Name WRONGPAGE
Message Text INSERT EXEC failed because the stored procedure altered the schema of the target table.

Explanation

Query store is on.

The plan is removed after the query store fills up.

User action

Increase the size of the query store.

Clear the procedure cache when query store comes back from READ WRITE state

Recompile just the INSERT EXEC statement to force it to go through the regular compile path and avoid hitting this exception due to unplanned recompilation caused by plan missing in query store.

For more information, see our troubleshooting article on error 556.

See also

DBCC CHECKTABLE (Transact-SQL)