RE: Is NULL comparison slow?
Try this AND (CASE WHEN ErrorID >= @ErrNumStart OR @ErrNumStart Is Null THEN 1 ELSE 0 END) = 1 I am just curious what effect it has. Is the code in an SP and have you looked at the execution plan to see how compares without the line.
2003-05-19