You mean it fails because of the empty BEGIN-END? do something meaningless but syntactically valid if for some reason you cant remove the block;
IF @value IS NULL
BEGIN
set @value=@value -- or print 'TODO' etc
END
You mean it fails because of the empty BEGIN-END? do something meaningless but syntactically valid if for some reason you cant remove the block;
IF @value IS NULL
BEGIN
set @value=@value -- or print 'TODO' etc
END