Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1.68 KB

rowcount-big-transact-sql.md

File metadata and controls

49 lines (38 loc) · 1.68 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
ROWCOUNT_BIG (Transact-SQL)
ROWCOUNT_BIG (Transact-SQL)
MikeRayMSFT
mikeray
03/13/2017
sql
t-sql
reference
ROWCOUNT_BIG
ROWCOUNT_BIG_TSQL
ROWCOUNT_BIG function
number of rows affected by statement
row affected by statements [SQL Server]
statements [SQL Server], last statement
counting rows
TSQL

ROWCOUNT_BIG (Transact-SQL)

[!INCLUDE SQL Server Azure SQL Database Azure SQL Managed Instance]

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.

:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions

Syntax

ROWCOUNT_BIG ( )  

Return Types

bigint

Remarks

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.

See Also

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