Answer:
1)Checking for @@Error must be done immediately after execution of a statement.
2)As @@ Error values changes with every execution of statement in the code we need to use a local variable to store the @@error value and use it whenever needed.
3)Along with the custom error, the system defined error also appears
Asked In: Many Interviews |
Alert Moderator