Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8113151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T02:44:11+00:00 2026-06-06T02:44:11+00:00

My application (C#, ASP.Net) needs to insert, update and delete data in the DB,

  • 0

My application (C#, ASP.Net) needs to insert, update and delete data in the DB, and run stored procedures. I need to prevent it from modifying the DB schema – no altering tables, creating or dropping, no changes to stored procedures.

What permissions combination do I need to grant to the application user? Just ‘select’ isn’t going to work, because it needs to insert/update/delete data in tables.

How do I check permissions and access for a particular login?
How do I grant or deny permissions and access for a login?
I need to give permissions to a new user (login) to access only one database.

Using SQL Server 2008 R2, with SSMS.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T02:44:12+00:00Added an answer on June 6, 2026 at 2:44 am

    If you really want to control this at the object level, you can do:

    GRANT SELECT,UPDATE,INSERT,DELETE ON dbo.table TO user;
    

    At the schema level:

    GRANT SELECT,UPDATE,INSERT,DELETE ON SCHEMA::dbo TO user;
    

    Ideally, though, you would not allow ad hoc DML against your tables, and control all DML through stored procedures. In which case you just need to grant exec on the procedure itself, and not to the objects it touches:

    GRANT EXEC ON dbo.procedure TO user;
    

    Similarly if you want to allow exec on all procedures in a specific schema, you can say:

    GRANT EXEC ON SCHEMA::dbo TO user;
    

    The one exception is when your stored procedure composes dynamic SQL. In those cases you might still need to apply permissions to the underlying tables in the context of the dynamic SQL execution, or you may be able to use EXECUTE AS OWNER.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my .net mvc application, I need to dynamically insert contents from local files
I need to implement caching in Asp.net web application My need to store data
My ASP.NET application needs a number of supporting services to run periodically in the
I am creating an ASP.NET application that allows users to edit and insert data
I'm making an ASP.NET application that needs to run an action every 30 minutes
we have implemented a web application in asp.net 4.0 and customer needs us to
In my asp.net application i need to integrate a jquery content slider with next,
I need to create a web application using ASP.NET MVC, jQuery and web standards
I am developing an application in asp.net mvc where i need to have Chat
In ASP.NET Application. I need to return string (which contains all necessary html tags)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.