Avi
Avi

Reputation: 1193

Sys scema and Information schema permissions

I have SQL Server 2008 R2.

I have denied SELECT on all [sys] schema, and INFOMRATION_SCHEMA objects for a user.

But the user has to be able SELECT from INFOMRATION_SCHEMA.PARAMETERS, but despite the REVOKE:

REVOKE SELECT ON OBJECT::[INFORMATION_SCHEMA].[PARAMETERS] to myUser;

the user still cannot select from that table/view.

I guess I have to REVOKE more, previously DENIED permissions on those system views/tables, but not sure which.

Any thought?

Upvotes: 0

Views: 68

Answers (2)

Avi
Avi

Reputation: 1193

Its not another [sys] table, but DENY VIEW DEFINITION permission which blocked me.

Upvotes: 0

BJones
BJones

Reputation: 2460

Have you tried:

REVOKE SELECT ON OBJECT::[INFORMATION_SCHEMA].[PARAMETERS] FROM myUser;

Note the change with keyword FROM. Examples are shown on Microsoft's website here.

Upvotes: 1

Related Questions