Declare @a varchar (8000) SELECT @ a = description from master..sysments where error = @@ ErrorSelect @a
This statement can read the error message before executing the statement.