I have a large script to run in Query Analyser containing multiple batches (so GOTO no good) and want a clean way of exiting if a return code from a stored procedure is a cretain value.
How can I quit the script without executing remaining statements and preferably without triggering a write to the system log (which I understand RAISERROR would do in some circumstances).
Thanks in advance.
How can I quit the script without executing remaining statements and preferably without triggering a write to the system log (which I understand RAISERROR would do in some circumstances).
Thanks in advance.