如何测量SQL resopnse的数据大小 [英] How to measure the data size of a SQL resopnse

查看:65
本文介绍了如何测量SQL resopnse的数据大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的开发人员,



在处理数据之前,有什么办法可以获得从MSSQL检索到的数据的{raw materiel}吗?

解决方案

我不会牺牲安全性来加快数据加载速度。您是否可以使用在应用安全性后以压缩方式返回数据的Web服务方法?那么你就可以拥有一个安全快速的网络服务。



如果你必须得到这个大小,那么可能是记录计数的一般化*列数*平均单元大小足以看看数据集是否很大。


谢谢大家,我通过使用SQLConnection中的一个名为RetrieveStatistics的方法找到了答案,它给出了我收到的字节总大小和我需要的许多其他重要信息。



你可以在这里查看一个例子:



https://msdn.microsoft.com/en-us/library/7h2ahss8(v = vs.110)的.aspx [ ^

Dear developers,

Is there any way that we can get the {raw materiel} of the data retrieved from a MSSQL before processing data?

解决方案

I would not sacrifice security to get data to load faster. Can you not make use of a web service method that returns data in a compressed fashion after applying security? then you can have a secure and a fast web service.

If you have to get the size, then probably a generalization of Record Count * Column count * average cell size would be adequate to see if the data set is large.


Thank you everyone, I found the answer myself by using a method in SQLConnection called RetrieveStatistics which gave me the total size of bytes received and many other important Information I need.

You can check an example right here:

https://msdn.microsoft.com/en-us/library/7h2ahss8(v=vs.110).aspx[^]


这篇关于如何测量SQL resopnse的数据大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆