Tem verificação de valor em SQL

if (@name is null or @value = '') //it will indicate whether it contains a value or not
Shy Seal