1

Is there a difference between having db_owner vs having execute/read/write permissions granted?

Is it safer, or no difference at all? Are there any considerations to be taken into account when deciding between one or the other?

user7792598
  • 177
  • 1
  • 6
  • 17

1 Answers1

0

You're mixing roles and permissions. DB_OWNER is a fixed DB role that has a bunch of permissions. R/W/E are permissions you can grant to a role or user.

db_owner as the name implies, can do pretty much anything to that specific database. A user that has read, write and execute permissions can do just that and only that. Can't create, alter, grant, etc.... The different is significant.

Suggest you check out details of SQL Server security model here https://learn.microsoft.com/en-us/sql/relational-databases/security/permissions-database-engine and remember to only grant what is needed, no more.

Also, this question is more appropriate in dba.stackexchange.com rather than stackoverflow.

SQLmojoe
  • 1,924
  • 1
  • 11
  • 15