How to make Query read only?

Make SQL Select Query Read Only

  • Is there a way to set an "Select Only" Mode? I work with SQL Server Management Studio and im afraid of editing some lines while selecting stuff from the database!

  • Answer:

    Yes, they are called user permissions. So you need to set the account you have only select rights to the database. So DENY insert ON all TO user DENY update ON all TO user DENY delete ON all TO user

Phil at Stack Overflow Visit the source

Was this solution helpful to you?

Other answers

create a new user with select only permissions. then use that user to connect.

Josh

ALTER DATABASE database-name SET READ_ONLY http://www.blackwasp.co.uk/SQLReadOnly.aspx

Dyno Hongjun Fu

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.