Connecting Tech Pros Worldwide Help | Site Map

Security for server tables on SQL 2000.

  #1  
Old November 3rd, 2008, 09:25 PM
Richard
Guest
 
Posts: n/a
I need a user to have access to track all processes logged into our
SQL Server. In other words, I need them to be able to query
master.dbo.sysprocesses. I've already written the query they'll use,
and it works when logged in as sa, but not when logged in as the user
who needs to be able to do this.

I know that on SQL Server 2005, the syntax to grant this permission
would be:

grant view server state to <username>

Unfortunately, I need to do this on an older server running SQL Server
2000, and that syntax doesn't work to grant the permission. Any idea
what I'd need to grant the user to make this work?

Thanks in advance,

--Richard

  #2  
Old November 3rd, 2008, 11:15 PM
Erland Sommarskog
Guest
 
Posts: n/a

re: Security for server tables on SQL 2000.


Richard (blueghost73@yahoo.com) writes:
Quote:
I need a user to have access to track all processes logged into our
SQL Server. In other words, I need them to be able to query
master.dbo.sysprocesses. I've already written the query they'll use,
and it works when logged in as sa, but not when logged in as the user
who needs to be able to do this.
What is the query? What does not "not work" mean?

As far as I recall, the information in sysprocess is public to everyone on
SQL 2000, so this is not likely to be a permission issue, but something
else. Unless someone explicitly has fiddled with the permissions on
sysprocesses. In such case, you should discuss with the DBA before
you fiddle anything more. What does "sp_helprotect sysprocesses" report?




--
Erland Sommarskog, SQL Server MVP, esquel@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/prodinf...ons/books.mspx

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
SYSTEM_USER automatic RTRIM of trailing spaces in 2000, but not 2005? brian.j.parker@gmail.com answers 5 August 28th, 2008 11:15 PM
ASP.NET and SQL 2000 FULL Text Search Results dave answers 5 November 22nd, 2005 02:58 AM
Placing Access Data On SQL BerkshireGuy answers 4 November 13th, 2005 10:33 AM
ASP.NET and SQL 2000 FULL Text Search Results dave answers 4 July 19th, 2005 05:19 AM