Software and Board Games

Exploring Sql Server Users And Permissions

Following on from my first post about Exploring SQL Server, I would like to talk about the things I learnt about how SQL Server handles users and permissions.

Surely a user is a user?

You would think so, but SQL Server has two types of user:

Also you also have roles and server roles.

And how do i make use of users and logins?

Well you only allow certain users/logins to have certain actions. To help explain this I am going to bring in some terminology:

Just the terminology should give a hint at how you do this, for each securable you give principals the ability to perform a set of actions they can perform and a set of actions they can’t perform.

Great, What can I secure?

Pretty much everything, from viewing data in a particular column to creating/deleting logins on the server.

Hopefully this sheds some light on how SQL Server handles Users, roles and permissions.