May 27, 2003 at 3:11 pm
We have several logins created that have 'select' rights on certain tables. I have to go back and list the login and the tables that it has 'select' rights. Is there a system table that I can query to give me this information?
Thanks!!
May 28, 2003 at 12:31 am
Hi JMeyers32,
sp_helpprotect should do what you need
This is taken from BOL:
A. List the permissions for a table
This example lists the permissions for the titles table.
EXEC sp_helprotect 'titles'
B. List the permissions for a user
This example lists all permissions that user Judy has in the current database.
EXEC sp_helprotect NULL, 'Judy'
Cheers,
Frank
--
Frank Kalis
Microsoft SQL Server MVP
Webmaster: http://www.insidesql.org/blogs
My blog: http://www.insidesql.org/blogs/frankkalis/[/url]
May 28, 2003 at 4:15 am
If you use any roles then you may not get those listed. Take a look at this script to help in that area.
http://www.sqlservercentral.com/scripts/contributions/268.asp
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply