View sp_AzSQLDBPermissions.sql
/********************************************************************************************* | |
sp_AzSQLDBPermissions V1.0 | |
Kenneth Fisher | |
http://www.sqlstudies.com | |
This stored procedure returns 3 data sets. The first dataset is the list of database | |
principals, the second is role membership, and the third is object and database level | |
permissions. | |
View sp_DBPermissions.sql
IF OBJECT_ID('dbo.sp_DBPermissions') IS NULL | |
EXEC sp_executesql N'CREATE PROCEDURE dbo.sp_DBPermissions AS PRINT ''Stub'';' | |
GO | |
/********************************************************************************************* | |
sp_DBPermissions V6.1 | |
Kenneth Fisher | |
http://www.sqlstudies.com | |
https://github.com/sqlstudent144/SQL-Server-Scripts/blob/master/sp_DBPermissions.sql | |
View sp_SrvPermissions.sql
USE master | |
GO | |
IF OBJECT_ID('dbo.sp_SrvPermissions') IS NULL | |
EXEC sp_executesql N'CREATE PROCEDURE dbo.sp_SrvPermissions AS PRINT ''Stub'';' | |
GO | |
/********************************************************************************************* | |
sp_SrvPermissions V6.1 | |
Kenneth Fisher | |
http://www.sqlstudies.com |