Mani-584606
SSChampion
Points: 11788
More actions
November 21, 2012 at 3:52 pm
#266318
What is the command to get list of databases for which a user has db_owner database role ?
Ant-Green
SSC Guru
Points: 113507
November 22, 2012 at 1:47 am
#1561519
You would need to loop through every database quering sys.database_role_members and sys.database_principals.
samihcl
Old Hand
Points: 304
November 22, 2012 at 2:49 am
#1561551
Thanks for your immediate replay..
As i am oracle dba,not no much about pt in sql server 2008..
Pls elobrat your answer so it will help me lot .
Regards,
AJ@SQL
SSC Eights!
Points: 811
November 22, 2012 at 2:59 am
#1561557
I also wanted something similar recently and used this article to get the list!
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=172689
You may want to set a filter in the at the end as: loginname='<required user>'
Hope this helps!
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply