Solved

How to get memory usage per database

Posted on 2003-11-04
4
315 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

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

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…
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

713 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