This article is an 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 a better SQL Expert. While discussing about Activity Monitor he informed that it throws an error when there is a 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 used called ‘ActivityUser’ when turned on Activity Monitor (while logging in with user ActivityUser’) it does not have show anything on the screen.
The issue here is a permissions issue. If user ActivityUser is given all the necessary permissions it will start showing up data in Activity Monitor. It is a 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 the data on Monitor. We can give permission, either using T-SQL or using SSMS.
T-SQL to give permission to others:
SSMS to give permission to others:
Once permissions are given to the 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.
Let me know what you think about this blog post in the comment section.
Reference: Pinal Dave (http://blog.sqlauthority.com)