Thanks Joao,
It works , but i need one more help
there is extension in that query's where clause
and
(
CASE WHEN @p_template = 1 THEN {AssertRegister}.[StatusId]=1
WHEN @p_template = 2 THEN {AssertRegister}.[StatusId] in (2,3) and {AssertRegister}.[isActive]='true'
END
)
i tried this but it shows error near to '='.
depending on @p_template i need to check different attributes
Regards,
Nilam Patil