Satya_0000
Mr or Mrs. 500
Points: 544
More actions
January 8, 2012 at 2:03 am
#391259
How to find user level permission by query?
padhis
SSCommitted
Points: 1762
January 8, 2012 at 2:08 am
#1430115
Use this.
EXECUTE AS USER = 'Wanida'; -- User name
SELECT * FROM fn_my_permissions('HumanResources.Employee', 'OBJECT')
ORDER BY subentity_name, permission_name ;
REVERT;
GO
more details.
http://www.mssqltips.com/sqlservertip/1440/script-to-determine-permissions-in-sql-server-2005/
vikingDBA
SSCertifiable
Points: 5356
January 9, 2012 at 7:09 am
#1430441
Here is the url to a script I wrote to do a full instance security audit. It gives all permissions for each database.
http://www.sqlservercentral.com/Forums/Topic1226870-359-1.aspx#bm1230153
Maybe it will help.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply