> I have a developer who has dbo privileges in master and msdb, and also has
> VIEW SERVER STATE and VIEW ANY DATABASE. According to SQL Server 2005
[quoted text clipped - 6 lines]
> SELECT permission denied on object 'partitions', database
> 'mssqlsystemresource', schema 'sys'.
That's a tricky one. It would indicate that there are locks on tables
in msqlsystemresource. And mssqlsystemresource is unavailable to
everyone, including sa, but if you're in the sysadmin role, the
check may be bypassed so you don't see the error.
I don't really know what to suggest, but you could try my aba_lockinfo
which gives about the same information as the Actvity Monitor, but
without any GUI. You can get it from
http://www.sommarskog.se/sqlutil/aba_lockinfo.html.
Maybe I would be more worried over the locks in mssqlsystemresource.
That does not really sound normal to me...

Signature
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
Augspies - 30 Jan 2007 19:23 GMT
> > I have a developer who has dbo privileges in master and msdb, and also has
> > VIEW SERVER STATE and VIEW ANY DATABASE. According to SQL Server 2005
[quoted text clipped - 19 lines]
> Maybe I would be more worried over the locks in mssqlsystemresource.
> That does not really sound normal to me...
This morning I restarted the SQL Server service (twice) to try to clear out
any locking issues, and I thought maybe it had something to do with tempdb?
Anyways as soon as I restarted the service I checked and I think everything
was cleared, but the developer still cannot access the Activity Monitor.
I've downloaed your tool but am still reading through the explanation of how
it works. I've run it and do not see any locks, with all parameters = 0 (the
default). Do you have idea what could be causing the problem?
I also created a test account with this developer's exact permissions, and
(of course) that account gets the same error. I cannot give sa
permissions...not sure what to do!
Erland Sommarskog - 30 Jan 2007 22:56 GMT
> Do you have idea what could be causing the problem?
No, I haven't a clue. I created a user with the privileges you mentioned,
and it was able to run Activity Monitor on my machine. But there is not much
going on at it.
> I also created a test account with this developer's exact permissions, and
> (of course) that account gets the same error.
When you ran the activity monitor or aba_lockinfo?
Most of the time, running aba_lockinfo with no parameters gives you the
information you want, but you can use the @processes argument to include
more processes. My thought was that maybe your user could use aba_lockinfo
rather than the Activity Monitor.

Signature
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
Augspies - 31 Jan 2007 14:53 GMT
> > Do you have idea what could be causing the problem?
>
[quoted text clipped - 11 lines]
> more processes. My thought was that maybe your user could use aba_lockinfo
> rather than the Activity Monitor.
The sp gives me a (great) workaround until I can find a solution for this
problem. I may be giving Microsoft a call here in the near future.
I really appreciate the prompt replies and assistance!