USE [database];
SELECT
class_desc
, CASE WHEN class = 0 THEN DB_NAME()
WHEN class = 1 THEN OBJECT_NAME(major_id)
WHEN class = 3 THEN SCHEMA_NAME(major_id) END [Securable]
, USER_NAME(grantee_principal_id) [User]
, permission_name
, state_desc
FROM sys.database_permissions
where USER_NAME(grantee_principal_id) = 'USER_NAME'
and state_desc = 'GRANT'
Till Next Time
multiple first day of week
-
Nice trick:
http://richardlees.blogspot.nl/2015/08/supporting-multiple-first-day-of-week.html
No comments:
Post a Comment