Hi I have a value that I want to make sure it is only numeric in stored procedure. I have following code
if (IsNumeric(myField) =0)
begin
--does some work
end;
It should check myField if the number is non numeric it does work if not it just continues. For some reason above code is throwing error. Any idea how to fix that. Error is that exception was thrown varchar to int. Please let me know Thanks