Getting statistics information for connections

Connection statistics information includes:

StepsTo get statistics information about a specific primary database connection

  1. Use sp_helpprimaryconn with the stats keyword, and specify a database connection:

    sp_helpprimaryconn stats, "conn_name"
    

    where conn_name is the connection name in the form ds.db.

StepsTo get statistics information about all primary database connections

  1. Use sp_helpprimaryconn with the stats keyword, without specifying a database connection:

    sp_helpprimaryconn stats
    

StepsTo get statistics information about a specific replicate database connection

  1. Use sp_helpreplicateconn with the stats keyword, and specify a database connection:

    sp_helpreplicateconn stats, "conn_name"
    

    where conn_name is the connection name in the form ds.db.

StepsTo get statistics information about all replicate database connections

  1. Use sp_helpreplicateconn with the stats keyword, without specifying a database connection:

    sp_helpreplicateconn stats