Solved

How to get memory usage per database

Posted on 2003-11-04
4
314 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
4 Comments
 
LVL 3

Accepted Solution

by:
htarlow earned 50 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

856 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