CAD/MCSE/MCDBA Self-Paced Training Kit [Electronic resources]: Microsoft SQL Server 2000 Database Design and Implementation, Second Edition (Exam 70-229)

Microsoft Corporation

نسخه متنی -صفحه : 223/ 174
نمايش فراداده

Glossary

Symbols

@@ERROR

A global variable that holds the error number for the last Transact-SQL statement executed. A value of 0 indicates no error. @@ERROR is reset after each statement is executed, so its value needs to be checked immediately after each Transact-SQL statement. The value must be saved to a local variable if it is to be used later in the code.

@@ROWCOUNT

A global variable that holds the number of rows returned by the last Transact-SQL statement. @@ROWCOUNT is reset after each statement is executed, so its value should be saved to a local variable if it is needed later in the code.