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