开发者

SQL Server Query Size of Results Set

开发者 https://www.devze.com 2023-03-15 01:06 出处:网络
Is there anyway in SQL Server to determine the size in MEGS of dat开发者_运维技巧a that a query returned ina query from Mgmt Studio in the Result Set?You can turn on client statistics (Query menu, Inc

Is there anyway in SQL Server to determine the size in MEGS of dat开发者_运维技巧a that a query returned in a query from Mgmt Studio in the Result Set?


You can turn on client statistics (Query menu, Include Client Statistics) which gives number of bytes returned from the server when the query is executed.


Create a table with query results and run sp_spaceused against it.

SELECT *
INTO tablename
FROM ...

Exec sp_spaceused 'tablename'

DROP TABLE tablename
0

精彩评论

暂无评论...
验证码 换一张
取 消