Cannot grant, deny or revoke permissions to or from special roles.

Error Message:
Msg 4617, Level 16, State 1, Line 2
Cannot grant, deny or revoke permissions to or from special roles.

Severity level:
16.

Description:
This error message appears when you try to revoke permissions from special database or server roles.

Consequences:
The T-SQL statement can be parsed, but causes the error at runtime.

Resolution:
Errors of the Severity Level 16 are generated by the user and can be fixed by the SQL Server user. The statement cannot be executed this way. Permissions for fixed database or server roles cannot be granted, revoked, or denied.

Versions:
All versions of SQL Server.

Example(s):
USE Northwind;
REVOKE SELECT ON OBJECT::dbo.Orders FROM db_datareader;

Remarks:
In the above example we try to revoke the SELECT permission from the fixed database role db_datareader. This raises the error.

]]>

Leave a comment

Your email address will not be published.