Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Why is the profiler showing writes in a SELECT Statement?

$
0
0

Hi,

when using the MSSQL profiler I can see page writes caused by an SELECT Statement.

How is this possible?

This statements causes alot of 6.8 million reads , 17 thousand writes and returns 4 rows. 

Why are there writes?

SELECTsum(CASE

WHEN(c.STATE= 2)

THEN 1

ELSE 0

END)AS XXX

,c.XXXXX AS xxxxxxxxxxxxxx

FROM xx c

WHERE c.xxx= 0

GROUPBY c.xxx

Thanks

Stefan


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>