Im not an expert in SQL.. but.. maybe something like this..
please, someone correct me if i am wrong, i dont know if this is possible... and if this works...
IF @macro_str LIKE '!%'
BEGIN
RAISERROR ('Not allowed macro : name = [%s]', 16, 1, @macro_str)
RETURN -1
END
IF @macro_str LIKE '+%'
BEGIN
RAISERROR ('Not allowed macro : name = [%s]', 16, 1, @macro_str)
RETURN -1
END
|