After each Transact-SQL statement, the server sets the value of this variable to an integer value:0 If the statement was successfulError number If the statement has failed