"memusage" column in sysprocesses table

  • Hi All - I have question about the memusage column in sysprocesses table. Does it tell the memory used by stored procs or the memory used by queries.

    I noticed the value of this column to be Zero for few spid's although they were doing insert.

    Any explanation will help.

    Regards

     

  • Number of pages in the procedure cache that currently are allocated to this process. A negative number indicates that the process is freeing memory allocated by another process.

    ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/tsqlref9/html/60a36d36-54b3-4bd6-9cac-702205a21b16.htm

  • Thanks Shawn for the reply , is "procedure cache" the memory place where execution plan's for stored procedures are saved?

  • Yes, the procedure cache holds compiled plans, exec plans, algebrizer trees and extended procedures.  You can use DBCC PROCCACHE to see more info about what is there.

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

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