All databases
sysprotects contains information on permissions that have been granted to, or revoked from, users, groups, and roles.
The columns for sysprotects are:
Name |
Datatype |
Description |
---|---|---|
id |
int |
ID of the object to which this permission applies. Has an ID of 0 when the permission granted is create table, create default, and so on. |
uid |
int |
ID of the user, group, or role to which this permission applies. |
action |
smallint |
See Table 1-22 for permissions. |
protecttype |
tinyint |
One of the following values:
|
columns |
varbinary(133) |
Bitmap of columns to which this select, update, decrypt, or references permission applies. The bits indicate the following:
columns is also a bitmap of permitted roles for set session authorization. |
grantor |
int |
User ID of the grantor. If the grantor is a system administrator, the user ID of the object owner is used. |
predid |
int |
Object ID of predicated privileg e |
status |
smallint |
0x0001 – indicates that the privilege (or denial) is predicated |
|
|
|
|
Permissions for the action column marked with an asterisk (*) take effect only when granular permissions is enabled.
Unique clustered index on id, action, grantor, uid, protecttype, predid