Hello,
I crated the following SQL task that executes a stored procedure:
execute [E2].[dbo].[Read_AD];These are the contents of the stored procedure:
begin try
begin transaction [Tran1];
---- code here
commit transaction [Tran1];
end try
begin catch
IF @@TRANCOUNT > 0 rollback transaction [Tran1];
end catch;
The problem is that when I run the job, no error is returned even though the stored procedure returns an error code. How do I instruct VisualCron to return an error message if the return value of the procedure is not 0 (zero means success)?
Edited by moderator
2019-08-02T18:30:39Z
|
Reason: Not specified