I want to give Create , alter , read permission on object to user but not insert , update ,delete,drop permission to user , How can i do it in sql server 2008?
Sql-server – How to deny drop, delete permission for a table
permissionssql-server-2008
Related Question
- MySQL Permissions – How to Grant Permission to New User
- Sql-server – Drop permission from a dbowner
- Sql-server – DB Permission: User can drop only their created db’s
- SQL Server – Deny Users Permission to Create Tables in Master
- Sql-server – The INSERT/UPDATE/DELETE permission was denied on the object ‘TheTable’, database ‘TheDb’, schema ‘dbo’
- Sql-server – Create table permission for a user in specific schema
- PostgreSQL Permissions – Fix Permission Denied Error When Deleting
Best Answer
To CREATE a table, stored procedure or function in SQL Server you need to GRANT the following
to a user or role. I added VIEW in since you probably wanted that too.
You also need to
to that user so that they can modify or use what they created.
With ALTER however that user would have the ability to DROP and ALTER anything in the schema which is not what you want based on your question.
ALTER PERMISSION SQL SERVER 2008
You could restrict that user to their own schema but that would probably create a lot of work for you since any application using your database would have to be aware of that new schema.
Outside of permissions, another way I know of to prevent dropping objects from a database is with a database trigger. Something like this: How to deny drop permission for a table?