dbTalk Databases Forums  

How to show roles with permissions to objects

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss How to show roles with permissions to objects in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bruce
 
Posts: n/a

Default How to show roles with permissions to objects - 03-13-2007 , 10:15 AM






Hello,

I am trying to write a script using SQL Server 2000 to list all of the
roles that have any permissions on a specified object (view, table,
sp, etc.). Essentially I am trying to script what is displayed when
one selects the 'list only users/user-defined database roles/public
with permissions to this object' option under 'manage permissions' in
EM but without showing individual users, only roles. I've looked at
the system sp's and the information_schema views but none of those
seem to give this information. Am I going to have to look directly at
the system tables? If anyone has a script that does this for a
specified object or can point me to more specific information on how
to do this I'd appreciate it. Thanks!

Bruce


Reply With Quote
  #2  
Old   
Jack Vamvas
 
Posts: n/a

Default Re: How to show roles with permissions to objects - 03-14-2007 , 03:41 AM






Have you checked "sp_helprotect" , this one is permissions for all objects,


--

Jack Vamvas
___________________________________
The latest IT jobs - www.ITjobfeed.com
<a href="http://www.itjobfeed.com">UK IT Jobs</a>


"Bruce" <deluxeinformation (AT) gmail (DOT) com> wrote

Quote:
Hello,

I am trying to write a script using SQL Server 2000 to list all of the
roles that have any permissions on a specified object (view, table,
sp, etc.). Essentially I am trying to script what is displayed when
one selects the 'list only users/user-defined database roles/public
with permissions to this object' option under 'manage permissions' in
EM but without showing individual users, only roles. I've looked at
the system sp's and the information_schema views but none of those
seem to give this information. Am I going to have to look directly at
the system tables? If anyone has a script that does this for a
specified object or can point me to more specific information on how
to do this I'd appreciate it. Thanks!

Bruce




Reply With Quote
  #3  
Old   
Bruce
 
Posts: n/a

Default Re: How to show roles with permissions to objects - 03-14-2007 , 07:29 AM



On Mar 14, 4:41 am, "Jack Vamvas" <DEL_TO_RE... (AT) del (DOT) com> wrote:
Quote:
Have you checked "sp_helprotect" , this one is permissions for all objects,

--

Jack Vamvas
___________________________________
The latest IT jobs -www.ITjobfeed.com
a href="http://www.itjobfeed.com">UK IT Jobs</a

"Bruce" <deluxeinformat... (AT) gmail (DOT) com> wrote in message

news:1173802556.534695.194010 (AT) p10g2000cwp (DOT) googlegroups.com...

Hello,

I am trying to write a script using SQL Server 2000 to list all of the
roles that have any permissions on a specified object (view, table,
sp, etc.). Essentially I am trying to script what is displayed when
one selects the 'list only users/user-defined database roles/public
with permissions to this object' option under 'manage permissions' in
EM but without showing individual users, only roles. I've looked at
the system sp's and the information_schema views but none of those
seem to give this information. Am I going to have to look directly at
the system tables? If anyone has a script that does this for a
specified object or can point me to more specific information on how
to do this I'd appreciate it. Thanks!

Bruce

Thank you. I don't know how I overlooked that one. Sometimes I wish
BOL was laid out a little differently.

Bruce



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.