T-SQL to list all the user mappings with database roles/permissions for a Login

前端 未结 7 2505
无人及你
无人及你 2020-12-06 05:09

I am looking for a t-sql script which can list the databases and and the respective roles/privileges mapped for a particular user. Using SQL Server 2008 R2.

7条回答
  •  一生所求
    2020-12-06 05:50

    Did you sort this? I just found this code here:

    http://www.pythian.com/news/29665/httpconsultingblogs-emc-comjamiethomsonarchive20070209sql-server-2005_3a00_-view-all-permissions-_2800_2_2900_-aspx/

    I think I'll need to do a bit of tweaking, but essentially this has sorted it for me!

    I hope it does for you too!

    J

提交回复
热议问题