itsmarkdavies
Programmer
I have added stages to my Stored Procedure which call another Stored Procedure at various points to say whether the particular stage has been successful. The Stored Procedure that does the logging just writes TimeStamped text into an Audit Table, e.g. after a major insert in my main Stored Procedure :-
exec LogProgress 'First Insert in sp1 completed', getdate
The various steps in the Stored Procedure are logged OK but the problem arises when there is an error. The Stored Procedure seems to keep running through and the logging procedure keeps logging, despite the fact that an error occurred way up in the procedure.
I would expect a Stored Procedure to stop execution when it hits an error. is this not the case ? !
I have heard about using "SET WARNINGS OFF" but do not understand the implications of this. Can anyone advise me ?. Thanks.
itsmarkdavies@hotmail.com
exec LogProgress 'First Insert in sp1 completed', getdate
The various steps in the Stored Procedure are logged OK but the problem arises when there is an error. The Stored Procedure seems to keep running through and the logging procedure keeps logging, despite the fact that an error occurred way up in the procedure.
I would expect a Stored Procedure to stop execution when it hits an error. is this not the case ? !
I have heard about using "SET WARNINGS OFF" but do not understand the implications of this. Can anyone advise me ?. Thanks.
itsmarkdavies@hotmail.com