Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. SQL Server Permissions

SQL Server Permissions

Scheduled Pinned Locked Moved Database
databasesql-serversysadminquestion
3 Posts 2 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Richard Andrew x64R Offline
    Richard Andrew x64R Offline
    Richard Andrew x64
    wrote on last edited by
    #1

    If I give read-only access to a SQL Server login, does that mean they cannot call stored procedures that CRUD data? What I'm looking for is the ability for users to: 1. Read the database, 2. Execute stored procedures that CRUD data. But NOT run any DDL. Meaning they cannot change table structures or stored procedures. I'm sure there must be a way to configure this.

    The difficult we do right away... ...the impossible takes slightly longer.

    R 1 Reply Last reply
    0
    • Richard Andrew x64R Richard Andrew x64

      If I give read-only access to a SQL Server login, does that mean they cannot call stored procedures that CRUD data? What I'm looking for is the ability for users to: 1. Read the database, 2. Execute stored procedures that CRUD data. But NOT run any DDL. Meaning they cannot change table structures or stored procedures. I'm sure there must be a way to configure this.

      The difficult we do right away... ...the impossible takes slightly longer.

      R Offline
      R Offline
      Richard Deeming
      wrote on last edited by
      #2

      So long as the user has permission to execute the stored procedure, and the stored procedure and the tables it references have the same owner, then it will work even if the user doesn't have any permissions on the referenced tables.


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      Richard Andrew x64R 1 Reply Last reply
      0
      • R Richard Deeming

        So long as the user has permission to execute the stored procedure, and the stored procedure and the tables it references have the same owner, then it will work even if the user doesn't have any permissions on the referenced tables.


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        Richard Andrew x64R Offline
        Richard Andrew x64R Offline
        Richard Andrew x64
        wrote on last edited by
        #3

        Thanks, Richard!

        The difficult we do right away... ...the impossible takes slightly longer.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups