I am trying to figure out the size of the payload that gets returned from SQL Server. The code I have is using ADO.NET:
using (var command = new SqlCommand("SELECT * FROM [dbo].[Products]", connection))
{
SqlDataReader reader = command.ExecuteReader();
// find # of bytes of payload returned
However, I am unsure how to get the size of what got returned from SQL server. Is there a way using the SqlDataReader I can do that?