Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to get memory usage per database

Posted on 2003-11-04
4
Medium Priority
?
321 Views
Last Modified: 2006-11-17
How to write the Stored Procedure to get the memory usage per database, which Stored Procedure in master database can be called to get those kind of information?

or

Is there a tool to monitor the memory or CPU usage per database?
0
Comment
Question by:hlqyang
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 3

Accepted Solution

by:
htarlow earned 200 total points
ID: 9679256
for cpu usage

run sp_who2 and sum up the cpu usage by database.
0
 

Expert Comment

by:kauf
ID: 9683209
I think you can get the mem-usage trough the masters sysprocesses table, you can group & sum to the database id there...
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question