SQL Flow Field Guide

Review a permission request at object scope

Connect a least-privilege request to the exact permission, securable, and database principal it affects.

What you are trying to do

A reporting service needs to read one view. A reviewer must distinguish an object-level SELECT grant from broad database or server access.

Work through it

  1. Treat the GRANT statement as safe syntax study only. Do not execute it or change an account or database permission.
  2. Identify SELECT as the permission, dbo.vw_OpenWork as the object, and app_reader as the named database principal.
  3. Check whether the requested scope matches the service task. A database-wide or server-wide permission would be broader.
  4. Ask the database owner to verify the real principal, object, approval, and existing grants before any access change.
  5. The visualizer should show one GRANT statement with an object securable and a database principal.

Check your work

The parsed statement grants only SELECT on OBJECT::dbo.vw_OpenWork to app_reader. It does not grant database-wide or server-wide access. No permission is changed by this syntax-study lab.

Practice SQL

Open in SQL Flow
-- SAFE SYNTAX STUDY ONLY. Do not execute this permission change.
GRANT SELECT ON OBJECT::dbo.vw_OpenWork TO app_reader;

Knowledge check

Commands in this lesson

Next lesson Keep the first edit and undo the second