SQL SERVER – 2008 – Activity Monitor is Empty – Fix Activity Monitor for All Users

This article is outcome of the technical discussion of activity monitor and its behavior with my friend and SQL Expert Tejas Shah. Tejas told me that he does not like to re-write content from MSDN but rather prefer to write real life scenarios, as that prepares him to become better SQL Expert. While discussing about Activity Monitor he informed that activity monitor throws an error when there is permissions issue. He has even blogged about how to give permissions to user to launch activity monitor on his blog . Tejas asked me to write on the same subject for SQL Server 2008. Here is the article covering the discussion I had with Tejas.

I have user called ‘ActivityUser’ when turned on Activity Monitor (while logging in with user ActivityUser’) it does not have show anything in Activity Monitor.

The issue here is permissions issue. If user ActivityUser is given all the necessary permission it will start showing up data in Activity Monitor. Activity Monitor is new tool in SQL Server which displays activity in five sections. 1) Overview, 2) Processes, 3) Resources Waits, 4) Data File I/O, 5) Recent Expensive Queries. It is one of the new and very useful tool introduced by SQL Server.

Activity Monitor captures all the information at server level. For the same reason we need to give “View Server State” permission to user name to view data of Activity Monitor.We can give permission either using T-SQL or using SSMS.

T-SQL to give permission to user to view Activity Monitor:

SSMS to give permission to user to view Activity Monitor:

Once permissions is given to user, it displays the data in Activity Monitor. Click on images to enlarge the images.

Additionally, note that if you are user belonging to sysadmin role, you can always see all the data in Activity Monitor without additional permissions.

Reference : Pinal Dave (http://blog.sqlauthority.com)

About these ads

5 thoughts on “SQL SERVER – 2008 – Activity Monitor is Empty – Fix Activity Monitor for All Users

  1. At the very beginning you refer the user name as “ActivityMon”, the one who does not have enough permission b’cos of which the data does not get displayed in the “Activity Monitor” UI. After that you DO NOT show anywhere in this blog on how this users “ActivityMon” gets the desired permission, but you used the user name as “ActivityUser” (2 different user names)

    Not sure if there is a broken-link in your documentation or there is a TYPO error

  2. Dear Sir,

    I receive following error.
    Msg 4621, Level 16, State 10, Line 1
    Permissions at the server scope can only be granted when the current database is master

    Please tell me how to fix it.

    Radha

  3. Pingback: SQL SERVER - Fix : Error : Msg 4621, Level 16, State 10 : Permissions at the server scope can only be granted when the current database is master Journey to SQL Authority with Pinal Dave

  4. I feel this is among the most vital info for me. And i am glad studying your article. However want to observation on few basic issues, The site taste is ideal, the articles is actually excellent : D. Just right activity, cheers

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s