Getting Memory usage through T-SQL

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Adi Sapir

    Getting Memory usage through T-SQL

    I'm trying to get the machine free ram value using either T-SQL or
    SQL-DMO.
    I found .Registry.Physi calMemory which takes care of the total ram but
    I still need eithrt the free or the used.

    Any ideas?
    Thanks!

  • Simon Hayes

    #2
    Re: Getting Memory usage through T-SQL

    "Adi Sapir" <adisapir@gmail .com> wrote in message news:<ce7ucv$rg 7@odbk17.prod.g oogle.com>...[color=blue]
    > I'm trying to get the machine free ram value using either T-SQL or
    > SQL-DMO.
    > I found .Registry.Physi calMemory which takes care of the total ram but
    > I still need eithrt the free or the used.
    >
    > Any ideas?
    > Thanks![/color]

    You should probably look at WMI for this, as it's intended for
    retrieving this kind of system-level information:



    Simon

    Comment

    Working...