Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Why do i see writes in profiler trace when my query is only a select? Expand / Collapse
Author
Message
Posted Thursday, September 19, 2013 11:09 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: 2 days ago @ 7:49 AM
Points: 1,295, Visits: 2,994

I just noticed that i see some writes under Writes column on sql profiler trace. These writes are physical writes. My query might be writing some data to tempdb, is that the reason?
Post #1496499
Posted Thursday, September 19, 2013 11:21 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 8:31 AM
Points: 40,456, Visits: 36,912
TempDB.


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1496507
Posted Thursday, September 19, 2013 11:34 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: 2 days ago @ 7:49 AM
Points: 1,295, Visits: 2,994
GilaMonster (9/19/2013)
TempDB.


Thanks . Then comes my second question, is there any way ONLY to filter on "Reads" in profiler, i mean i basically want queries thats DONT change the data...
Post #1496515
Posted Thursday, September 19, 2013 12:30 PM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 8:31 AM
Points: 40,456, Visits: 36,912
You could filter for Writes = 0, but that will exclude anything that touches TempDB, so maybe not what you want. Why do you want to exclude anything that writes?


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1496547
Posted Thursday, September 19, 2013 3:44 PM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: 2 days ago @ 7:49 AM
Points: 1,295, Visits: 2,994

I guess i could . I am trying to replay transactions from prod to my test, but then i cant replay or wont have any value to the one's which are making data changes for various reasons.
Post #1496624
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse