Why do i see writes in profiler trace when my query is only a select?

  • 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?

  • TempDB.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    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
  • 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...

  • 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, MVP, M.Sc (Comp Sci)
    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
  • 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.

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply