Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Roles and permissions

 
   Database Forums (Home) -> Security RSS
Next:  Previous year with MDX  
Author Message
Munish Narula

External


Since: Dec 24, 2007
Posts: 13



(Msg. 1) Posted: Wed Dec 03, 2008 1:54 am
Post subject: Roles and permissions
Archived from groups: microsoft>public>sqlserver>security (more info?)

I need to get all roles, users and their permissions in SQL 2000. Please let
me know how can i get those.

Which table returns me the roles existing in the database and the permission
assigned to these roles in SQL 2000.

Also which table would give me the relation between the role and the users
in that role in SQL 2000.

 >> Stay informed about: Roles and permissions 
Back to top
Login to vote
Russell Fields

External


Since: Feb 21, 2007
Posts: 457



(Msg. 2) Posted: Wed Dec 03, 2008 5:13 pm
Post subject: Re: Roles and permissions [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Munish,

For SQL Server 2000, here is a start.

To see all logins and their group memberships on a server, run:
exec sp_helplogins

Within a database you can also run:
exec sp_helprolemember

For each database, to see all rights granted in that database run:
exec sp_helprotect

You can also look at the code of these stored procedures to see the tables
that they use.

RLF

"Munish Narula" wrote in message

>I need to get all roles, users and their permissions in SQL 2000. Please
>let
> me know how can i get those.
>
> Which table returns me the roles existing in the database and the
> permission
> assigned to these roles in SQL 2000.
>
> Also which table would give me the relation between the role and the users
> in that role in SQL 2000.
>
>

 >> Stay informed about: Roles and permissions 
Back to top
Login to vote
Munish Narula

External


Since: Dec 24, 2007
Posts: 13



(Msg. 3) Posted: Wed Dec 03, 2008 9:12 pm
Post subject: Re: Roles and permissions [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks Russell.


"Russell Fields" wrote:

> Munish,
>
> For SQL Server 2000, here is a start.
>
> To see all logins and their group memberships on a server, run:
> exec sp_helplogins
>
> Within a database you can also run:
> exec sp_helprolemember
>
> For each database, to see all rights granted in that database run:
> exec sp_helprotect
>
> You can also look at the code of these stored procedures to see the tables
> that they use.
>
> RLF
>
> "Munish Narula" wrote in message
>
> >I need to get all roles, users and their permissions in SQL 2000. Please
> >let
> > me know how can i get those.
> >
> > Which table returns me the roles existing in the database and the
> > permission
> > assigned to these roles in SQL 2000.
> >
> > Also which table would give me the relation between the role and the users
> > in that role in SQL 2000.
> >
> >
>
>
 >> Stay informed about: Roles and permissions 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Server Roles - Hi All, is it possible to programmatically (not through the Enterprise Manager) set the Server Roles? I know that is possible for the application and database roles. I.E. To SysAdmin or any Server Role in general. Thank you for your help Zagor

What are the Roles of Production DBA? - Hi every one, i am a new SQL server DBA and i want to know the Roles of SQL Server Production DBA as i am having Interview for another position. I would appreciate if you could send me the information of Roles and Responsibilites of Production DBA. ...

Server roles - I have an old master database, I can restore it with another name but it can't replace the real master. Is there any way I can se the info about server roles from this database? I want to se which "role members" there is for different server r...

various sql server 2000 security roles - I am basically new to sql server 2000 within the last 6 months. At my small company, I was told that they want me to sent out alerts for reasons like a database has reached 80% of its maximum capacity. I am suppose to setup backup and restore..

Server Roles Process administrators -
   Database Forums (Home) -> Security All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]