Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I work out how much data a stored procedure returns?

How do I work out how much data (in KB) a stored procedure returns? I can't see a column in profiler that might indicate this, other than Binary Data.

Can I do it with a SQL Server tool like profiler, or should I use something like Wireshark?

like image 650
ausgeorge Avatar asked Dec 17 '25 13:12

ausgeorge


2 Answers

Run the stored procedure in SQL Server Management Studio with "Include Client Statistics" selected. The Client Statistics tab in the results pane will include a figure for "Bytes received from server."

like image 91
Ian Nelson Avatar answered Dec 20 '25 01:12

Ian Nelson


Right click th empty space in SSMS.and select the Include Client Statistics

enter image description here Bytes received from server – is the amount of data the SQL Server has sent to the client, measured in bytes

enter image description here

like image 22
Nagaraj S Avatar answered Dec 20 '25 01:12

Nagaraj S



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!