Welcome  |  Sign In     | 
MSDN
     
Transact-SQL Reference
ROWCOUNT_BIG
Transact-SQL Reference
ROWCOUNT_BIG

Returns the number of rows affected by the last statement executed. This function operates like @@ROWCOUNT, except that the return type of ROWCOUNT_BIG is bigint.

Syntax

ROWCOUNT_BIG ( )

Return Types

bigint

Remarks

Following a SELECT statement, this function returns the number of rows returned by the SELECT statement.

Following INSERT, UPDATE, or DELETE statements, this function returns the number of rows affected by the data modification statement.

Following statements that do not return rows, such as an IF statement, this function returns zero (0).

See Also

COUNT_BIG

Data Types


©2007 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
 
Page view tracker