TechNet
Export (0) Print
Expand All

ROWCOUNT_BIG (Transact-SQL)

 

THIS TOPIC APPLIES TO:yesSQL Server (starting with 2008)yesAzure SQL DatabasenoAzure SQL Data Warehouse noParallel Data Warehouse

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

Topic link icon Transact-SQL Syntax Conventions

  
ROWCOUNT_BIG ( )  

bigint

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

Following an INSERT, UPDATE, or DELETE statement, 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 0.

COUNT_BIG (Transact-SQL)
Data Types (Transact-SQL)

Community Additions

ADD
Show:
© 2016 Microsoft