Search code examples
sql-serversecuritysql-server-2000database-permissionsdatabase-security

Prevent SQL Server Table operations (INSERT and DELETE) on some tables


While working with some random sql queries on our databases, we may not want to insert or delete items to some of the database tables by just typing their names by mistake. So how to make them locked to the "editing", to be able to work safe.

Thanks.


Solution

  • Why not just define a role in your database and give that role rights to whatever tables your users need, but this role would not have update/delete rights to the tables you are concerned with?