Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
SQL Server Newbies
»
How to find database,object,schema level...
How to find database,object,schema level permissions on a server
Rate Topic
Display Mode
Topic Options
Author
Message
¥?ürz.§µññÿ
¥?ürz.§µññÿ
Posted Tuesday, March 12, 2013 6:47 AM
Forum Newbie
Group: General Forum Members
Last Login: Wednesday, June 05, 2013 8:47 AM
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
Post #1429753
OTF
OTF
Posted Wednesday, March 13, 2013 8:17 AM
SSC Veteran
Group: General Forum Members
Last Login: Yesterday @ 7:53 AM
Points: 274,
Visits: 3,800
¥?ü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.
Post #1430418
¥?ürz.§µññÿ
¥?ürz.§µññÿ
Posted Wednesday, March 13, 2013 12:59 PM
Forum Newbie
Group: General Forum Members
Last Login: Wednesday, June 05, 2013 8:47 AM
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
Post #1430590
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.