In this blog post, let’s learn about the error message “10521 – Cannot create plan guide ‘%.*ls’ because @type was specified as ‘%ls’ and the parameter ‘%ls’ is NULL. This type requires a non-NULL value for the parameter. Specify a non-NULL value for the parameter, or change the type to one that allows a NULL value for the parameter.” in Microsoft SQL Server, the reason why it appears and the solution to fix it.
SQL Server Error Message
10521 – Cannot create plan guide ‘%.*ls’ because @type was specified as ‘%ls’ and the parameter ‘%ls’ is NULL. This type requires a non-NULL value for the parameter. Specify a non-NULL value for the parameter, or change the type to one that allows a NULL value for the parameter.
Reason for the Error
To be update soon…
Solution
To be update soon…