are tables cached in the same location as procedure cache?

  • I have a sproc in which there are bunch of select statements...now if i just run the select statement..i know the data is cached...would the same cache be used when the procedures runs? I mean when i run the procedure would it take benefit of the tables that are cached by running the select statement?

  • The data cache just caches pages from tables, it doesn't care what query ran to get those pages into cache, it just cares that the page is there. Anything that queries the table will read from cache

    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
  • Thanks Gail. Gail do you know of any good article which explain different types of cache in memory for sql server?

  • Books Online?

    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

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

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