I am wondering what rights should be given to sql server user for asp.net website considering following criteria
Sql server user
Should be able to do
- read from tables
- insert into tables
- update rows
- execute sp, udf
Should NOT be able to
- delete any of the tables
- delete any records from table
- delete any stored proc, udf or any other procedures
- create new table
- create new sp, udf, trigger, index etc
- alter any table
- alter any columns in tables
- alter any sp, udf, trigger, index etc
- any other dangerous stuff
Create a user and then apply the following scripts substituting USERNAME with your sql user. This will generate all the scripts you should need!