TechNet
Export (0) Print
Expand All

sys.sysprotects (Transact-SQL)

 

Contains information about permissions that have been applied to security accounts in the database by using the GRANT and DENY statements.

System_CAPS_ICON_important.jpg Important


This SQL Server 2000 system table is included as a view for backward compatibility. We recommend that you use the current SQL Server system views instead. To find the equivalent system view or views, see Mapping System Tables to System Views (Transact-SQL). This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

Applies to: SQL Server (SQL Server 2008 through current version).
Column nameData typeDescription
idintID of the object to which these permissions apply.
uidsmallintID of user or group to which these permissions apply. Overflows or returns NULL if the number of users and roles exceeds 32,767.
actiontinyintCan have one of the following permissions:

26 = REFERENCES

178 = CREATE FUNCTION

193 = SELECT

195 = INSERT

196 = DELETE

197 = UPDATE

198 = CREATE TABLE

203 = CREATE DATABASE

207 = CREATE VIEW

222 = CREATE PROCEDURE

224 = EXECUTE

228 = BACKUP DATABASE

233 = CREATE DEFAULT

235 = BACKUP LOG

236 = CREATE RULE
protecttypetinyintCan have the following values:

204 = GRANT_W_GRANT

205 = GRANT

206 = DENY
columnsvarbinary(8000)Bitmap of columns to which these SELECT or UPDATE permissions apply.

Bit 0 = All columns.

Bit 1 = Permissions apply to that column.

NULL = No information.
grantorsmallintUser ID of the user that issued the GRANT or DENY permissions. Overflows or returns NULL if the number of users and roles exceeds 32,767.

Mapping System Tables to System Views (Transact-SQL)
Compatibility Views (Transact-SQL)

Community Additions

ADD
Show:
© 2016 Microsoft