Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show Row Count in SQL Profiler

Is it possible to show a "Row Count" column in SQL Server Profiler?

For example there are CPU and Duration columns but can it show how many rows a query returns?

like image 208
Kobus Smit Avatar asked Feb 12 '10 12:02

Kobus Smit


People also ask

How do I show row counts in SQL?

Use the COUNT aggregate function to count the number of rows in a table. This function takes the name of the column as its argument (e.g., id ) and returns the number of rows for this particular column in the table (e.g., 5).

How do you get total row count?

Just click the column header. The status bar, in the lower-right corner of your Excel window, will tell you the row count. Do the same thing to count columns, but this time click the row selector at the left end of the row. If you select an entire row or column, Excel counts just the cells that contain data.

What is the use of @@ rowcount?

Data manipulation language (DML) statements set the @@ROWCOUNT value to the number of rows affected by the query and return that value to the client. The DML statements may not send any rows to the client.

What is SELECT @@ rowcount?

SQL Server @@ROWCOUNT is a system variable that is used to return the number of rows that are affected by the last executed statement in the batch.


1 Answers

How about using the RowCounts column?

like image 153
Ed_E Avatar answered Oct 04 '22 03:10

Ed_E