Viewing 4 posts - 1 through 4 (of 4 total)
I added that to find Database permissions
--DATABASE permissions
SELECT replace(state_desc,'_with_grant_option','') + ' '+ permission_name + 'TO [' + USER_NAME(grantee_principal_id)+']' +
case
when state_desc like '%with_grant_option' then ' with grant option'
else
' '
end
as '--...
October 24, 2011 at 7:26 am
Hello
Interesting script but it seems some grant are not included.
I have a database with a role "dev" which I granted
GRANT CREATE PROCEDURE,CREATE FUNCTION,CREATE VIEW TO...
October 24, 2011 at 7:07 am
Oh yes ! you're right, thanks !
March 19, 2010 at 9:51 am
Hello
You script is using compatibility views. I prefer using dedicated views even if I need to have several version for different SQL Server version.
Here is my SQL script for SQL...
March 18, 2010 at 3:49 am
Viewing 4 posts - 1 through 4 (of 4 total)