Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 212
  • Last Modified:

How do I revoke access to all objects of a database except for a specific view?

How would I revoke access to all objects in a database with the exception of select permissions to a view within that database The name of the View is MYVIEW and the user account is MYACCOUNT?
Steve Samson
Steve Samson
1 Solution
HainKurtSr. System AnalystCommented:
you need two statements

revoke all from userid;
grant select on viewname to userid;
Steve SamsonAuthor Commented:
Exactly I thought there was more to it.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now