SQL Server Error Code – 8685 query cannot be compiled because

In this blog post, you’ll learn more about the SQL Server Error Code 8685 and the error message description that is shown

SQL Server Error Code

8685

SQL Server Error Description for the Code :8685

Query cannot be compiled because element appears in XML plan provided to USE PLAN but USE PLAN was applied to a non-cursor statement. Consider using an XML plan obtained from SQL Server for statement without modification.