Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


How to find database,object,schema level permissions on a server


How to find database,object,schema level permissions on a server

Author
Message
¥♥ürz.§µññÿ
¥♥ürz.§µññÿ
Forum Newbie
Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)

Group: General Forum Members
Points: 9 Visits: 44
Hi...any one can provide the solution please it's very urgent

i need a tsql script for SQL SERVER 2005

Requirements:

I have 2 user accounts for the both accounts i need to find the all the permissions.

Like...

• The 2 users are mapped to which databases on the server?

• What are the databases names?

• What kind of permissions having on the mapped databases?

• For each database i need to find all the permissions like object level, schema level....etc.....?


Thanks
OTF
OTF
Old Hand
Old Hand (316 reputation)Old Hand (316 reputation)Old Hand (316 reputation)Old Hand (316 reputation)Old Hand (316 reputation)Old Hand (316 reputation)Old Hand (316 reputation)Old Hand (316 reputation)

Group: General Forum Members
Points: 316 Visits: 4128
¥?ürz.§µññÿ (3/12/2013)
Hi...any one can provide the solution please it's very urgent

i need a tsql script for SQL SERVER 2005

Requirements:

I have 2 user accounts for the both accounts i need to find the all the permissions.

Like...

• The 2 users are mapped to which databases on the server?

• What are the databases names?

• What kind of permissions having on the mapped databases?

• For each database i need to find all the permissions like object level, schema level....etc.....?


Thanks


I think you may need to word your question differently without it looking like your trying to offload your work on folks?
At the very least, you should come back with something you have tried.

In any case, I can point you to the Security Catalog Views in Books Online and frankly, a little googling will
probably give you some good starting point scripts.
¥♥ürz.§µññÿ
¥♥ürz.§µññÿ
Forum Newbie
Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)Forum Newbie (9 reputation)

Group: General Forum Members
Points: 9 Visits: 44
Hi...friends.........This script gives all the permissions

Try this......very useful

select USER_NAME(p.grantee_principal_id) AS principal_name,

dp.type_desc AS principal_type_desc,

p.class_desc,

OBJECT_NAME(p.major_id) AS object_name,

p.permission_name,

p.state_desc AS permission_state_desc

from sys.database_permissions p

inner JOIN sys.database_principals dp

on p.grantee_principal_id = dp.principal_id
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search