I'm wondering if there is a way to check if variable @varChar is NULL and variable @bit is 0.
My attempt:
if ISNULL(@varChar, false) and (@bit = 0)
begin
RAISERROR ('varchar was not specified', 16,1);
end
My problem is that ISNULL(check_if_null, replacement_value) does not work like this, and I can not find an alternative.