Thanks,
Bill
Anyone have any info on this? Still have not resolved this. I
realized that this is a view and am guessing there is some table
behind that we don't have the right access to. But you can't script
out this view to find out what that table is.
Thanks,
Bill
For many of the DMVs, the rule is that you may read data you have
permission to see or own. Thus, you will not get an error if there
is data you are not entitled to see.
Unfortunately, the Permissions section in Books Online does not give
information about the required permissions to view data, but I would
guess that you need permissions on the services, but exactly what is
not clear.
The alternative is to put the count(*) in a stored procedure, then you
can use certificate signing or impersonation to bundle the permission
with the procedure. I have an extensive article about this on my web
site: http://www.sommarskog.se/grantperm.html.
--
Erland Sommarskog, SQL Server MVP, esq...@sommarskog.se
Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx