SQL Server Error Msg 10536 – Cannot create plan guide ‘%.*ls’ because the batch or module corresponding to the specified @plan_handle contains more than 1000 eligible statements. Create a plan guide for each statement in the batch or module by specifying a statement_start_offset value for each statement.

In this blog post, let’s learn about the error message “10536 – Cannot create plan guide ‘%.*ls’ because the batch or module corresponding to the specified @plan_handle contains more than 1000 eligible statements. Create a plan guide for each statement in the batch or module by specifying a statement_start_offset value for each statement.” in Microsoft SQL Server, the reason why it appears and the solution to fix it.

SQL Server Error Message

10536 – Cannot create plan guide ‘%.*ls’ because the batch or module corresponding to the specified @plan_handle contains more than 1000 eligible statements. Create a plan guide for each statement in the batch or module by specifying a statement_start_offset value for each statement.

Reason for the Error

To be update soon…

Solution

To be update soon…