Hi,
when backuping transaction logs I want to realize some error handling.
But if during the backup the share is renamed the error handling ist not working anymore.
I read that a few errors are not catched by "try error", I think this kind of operation system error can not be catched by
"try error", how can such an error be handled within a procedure.
---------------------------------------------------------------------------------
Error message:
Cannot open backup device 'C:\backup\WEBTest_20071009112432.trn'. Operating system error 3(error not found). [SQLSTATE 42000] (Error 3201).
The steps looks like that:
begin try
backup log @db
to
disk = @filepath1
with
format;
end try
begin catch
Print 'error';
end catch
when backuping transaction logs I want to realize some error handling.
But if during the backup the share is renamed the error handling ist not working anymore.
I read that a few errors are not catched by "try error", I think this kind of operation system error can not be catched by
"try error", how can such an error be handled within a procedure.
---------------------------------------------------------------------------------
Error message:
Cannot open backup device 'C:\backup\WEBTest_20071009112432.trn'. Operating system error 3(error not found). [SQLSTATE 42000] (Error 3201).
The steps looks like that:
begin try
backup log @db
to
disk = @filepath1
with
format;
end try
begin catch
Print 'error';
end catch