I'm trying to add some code in a stored procedure to detect error from executing a function:
set @variable = cast(@variable_2 as int)
if (@@error != 0)
do something ..
However, it seems the error from the function termintate the excution of the whole stored procedure!
Can anyone help?!
Appreciated,
Dakun