to check how much MB of data is returned in each stored procedure call..

in sql server, is there a way to see how much of MB is returned by a call of a stored procedure? (through DMV or other means?)
LVL 5
25112Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vitor MontalvãoMSSQL Senior EngineerCommented:
What do you mean? A stored procedure doesn't return nothing.
A function maybe? But then you already know the data type of what it will be returned and if it's a table then you already know the row size so you only need to calculate (number of rows) X (size of row).
0
Jacques Bourgeois (James Burger)PresidentCommented:
There is a tool to provide statistics. I have never used it, but according to the documentation and the sample code, it can returned a BytesReceived value after executing a command through a DataAdapter.
0
Ryan McCauleyData and Analytics ManagerCommented:
Right click on an empty space in SSMS and select "Include Client Statistics" - when you execute the stored procedure (or any query, for that matter), you'll get a tab with a whole bunch of additional information about the query you just ran, and one of those items is "Bytes returned from server", which will give you what you want.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
25112Author Commented:
thank you
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.