August 22, 2005 at 9:42 am
I am looking at one large clustered production box, with a couple dozen databases on it - each with a hundred or so tables on it, and a few tables have at least 3 million rows.
The boss says, "which one are we using the most, and can you give me a statistical breakdown of each?"
I am not sure a script exists for such, and I may end up having to pull a very large profiler trace in to find this out. Not really sure though.
Nor can I abuse this box much, as it is THE production box so no locks/timeouts need to happen from me.
Where should I look for answers? I have Googled, and BOL'd and read, but I am not seeing what I want. What am I missing?
August 23, 2005 at 8:52 am
You can use performance monitor on a client box and connect to the production. Use the counter log to monitor SQL/Database/Transactions / sec counter. You need to select this counter for each database you want to monitor.
You can save the result to a file, and get total or average trasactions/sec for each database.
The result just reflects the hit of clients on each database. If the transactions on different db varies greatly in terms of time and impact on IO, the reslut may not accurate.
As you said, you can profiler too. Either run it on a client box or set up sever side trace will mitigate its impact on production server.
August 23, 2005 at 11:52 am
Be careful in presenting your statistics. 'using the most' needs to be quantified first !
Based on what 'using the most' means can vary what profiler/perfmon information you gather, not to mention the frequency and volume. Also, the type of applications using the databases may also affect the definition of 'using the most'.
Some examples of what 'using the most' could mean (to a database):
Now differentate the type of databse and application:
As you see things can become quite 'murky' in a hurry. A bit more 'clarity' now will most likely save everyone a great deal of mis-information and mis-communication later.
RegardsRudy KomacsarSenior Database Administrator"Ave Caesar! - Morituri te salutamus."
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply