database metric

  • Is it possible to produce any sort of database level performance metric in SQL Server. Let's say how many queries are being processed by that database? what's the response time. average response time or processing time. Anything that can help me track performance of a specific database on the SQL Server instance.

    thanks

  • There are lots of DMV's that you can use to get these metrics. For instance sys.dm_exec_procedure_stats.

    The activity monitor shows these details as well.

    -Roy

  • Can I do that at database level?

  • Yes, you can. You can specify which DB you want the metrics for.

    Just specify the database_id

    -Roy

  • On that note, get into SSMS and press the {f1} key. Select the index mode. Type "sys.dm" in the index box and start reading. There's not much you can't find out about SQL Server from T-SQL.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply