I am trying to run a sp and getting the following error message:
A RETURN statement with a return value cannot be used in this context.
IF @@ERROR <> 0
BEGIN
RAISERROR('Error on updating history_load_log_reject, error number %d',15,1,@@error)
RETURN @@ERROR
END
GO
Any assistance / thoughts as to why would be appreciated.
A RETURN statement with a return value cannot be used in this context.
IF @@ERROR <> 0
BEGIN
RAISERROR('Error on updating history_load_log_reject, error number %d',15,1,@@error)
RETURN @@ERROR
END
GO
Any assistance / thoughts as to why would be appreciated.