I\'ve got a query with a WHERE clause that contains a condition that checks a NULLable column against a parameter that may be NULL, like so:>
WHERE
add this line of code
> WITH RECOMPILE
in the beggining of the procedure, it makes sure to build a new execution plan, not depending in the previous execution.