@@ERROR Returns the error number for the last Transact-SQL statement executed. UPDATE authors SET au_id = '172 32 1176' WHERE au_id = "172-32-1176" IF @@ERROR = 547 print "A check constraint violation occurred" @@ROWCOUNT Topic last updated -- July 2003 Returns the number of rows affected by the last statement. UPDATE FMP_tbluser SET username = username IF @@ROWCOUNT = 0 print 'Warning: No rows were updated' IDENT_CURRENT Returns the last identity value generated for a specified table in any session and any scope. IDENT_CURRENT is similar to the Microsoft® SQL Server™ 2000 identity functions SCOPE_IDENTITY and @@IDENTITY. All three functions return last-generated identity values. However, the scope and session on which 'last' is defined in each of these functions differ. IDENT_CURRENT returns the last identity value generated for a specific table in any session and any scope. @@IDENTITY returns the last identity value generated for an...