Understanding SQL Server 2008 Security, Logins, Roles etc

前端 未结 1 2055
你的背包
你的背包 2021-02-08 23:59

I having trouble understanding some core concepts in SQL Server 2008. Until recently I haven\'t had to care much about security, users, schemas etc.

  1. What is the

相关标签:
1条回答
  • 2021-02-09 00:36
    1. A login is the principal that is used to connect to the server. A user is the principal that is used to connect to a database. The security context on the instance itself is dictated by the login, it's roles and the permissions granted/denied. The security context on the database is dictated by the user, it's roles and the permissions granted/denied.
    2. Like all other role based systems, the roles are logical groupings of permissions. Roles can be applied to users and logins. There are fixed server roles and fixed database roles for frequently used sets of permissions.
    3. A schema is a database object that is used for two things: logical separation of database objects (tables, stored procs, functions, views), and security separation. A schema contains these objects. And users can be granted/denied rights on schemas, implicitly granting/denying rights on the objects contained within.

    4 doesn't really seem like a question. Can you reword??

    0 讨论(0)
提交回复
热议问题