I need to grant select and update permissions to a DB user (TestUser) on TestDB database as per below.
When I press ok and re-check the permissions, they are not visible as can be shown below:
From my testing, only permissions at object level (e.g. columns, etc) are displayed here.
Can select permission on the database be visible from somewhere apart by executing T-SQL code? Is this a bug or by design? The same applies to user defined DB role permissions and it is very misleading.
Best Answer
Reason you are not seeing the permission when you open the window by default it is scoped to
Securable scope: Schema' and not
database`.More on secureables.
Yes it is possible. From your 2nd screen:
All objects of the types....
Ok
Databases
You should see
TestDB
in the list at top half of the window. In the bottom half you can see Explicit and Effective permission.In case you want to use tsql: