![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I was trying to get a list of all users that have the access to the particular SQL Server installces and their permissions + those user's permissions on each of the databases. This is what I got so far: SELECT srprin.NAME, srprin.type_desc, srperm.class_desc, srperm.permission_name FROM sys.server_principals srprin INNER JOIN sys.server_permissions srperm ON srprin.principal_id = srperm.grantee_principal_id However, it doesn't show me user's mappings (rights on each database). What else am I missing? T. |
#3
| |||
| |||
|
|
Hi, I was trying to get a list of all users that have the access to the particular SQL Server installces and their permissions + those user's permissions on each of the databases. This is what I got so far: SELECT srprin.NAME, srprin.type_desc, srperm.class_desc, srperm.permission_name FROM sys.server_principals srprin INNER JOIN sys.server_permissions srperm ON srprin.principal_id = srperm.grantee_principal_id However, it doesn't show me user's mappings (rights on each database). What else am I missing? T. |
#4
| |||
| |||
|
|
Hi, I was trying to get a list of all users that have the access to the particular SQL Server installces and their permissions + those user's permissions on each of the databases. This is what I got so far: SELECT srprin.NAME, srprin.type_desc, srperm.class_desc, srperm.permission_name FROM sys.server_principals srprin INNER JOIN sys.server_permissions srperm ON srprin.principal_id = srperm.grantee_principal_id However, it doesn't show me user's mappings (rights on each database). What else am I missing? T. |
![]() |
| Thread Tools | |
| Display Modes | |
| |