View Single Post
Old 25.09.2006, 03:58   #7
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

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
FidoW is offline