Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 How to view Explicit Permissions?

Author  Topic 

DBADave
Constraint Violating Yak Guru

366 Posts

Posted - 2007-05-22 : 15:30:29
I want to view permissions assigned to a group. I read about using has_perms_by_name, however I don't believe you can impersonate a group.

EXECUTE AS Login = 'BLAIRNET\MIS Developers'
GO
SELECT has_perms_by_name(db_name(), 'Database', 'ANY')
GO
REVERT
GO

The above does not work. Any suggestions?

Thanks, Dave
   

- Advertisement -