Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL Server - Server Login vs. Database Login [closed]

Tags:

sql-server

Could someone give me a 30K foot overview of the differences and relationships of a server login vs. a database login?

like image 365
Randy Minder Avatar asked Dec 04 '22 09:12

Randy Minder


1 Answers

A Server Login is for authentication. A Database User is for authorization.

In the very simplest terms, a server login allows you to connect to the SQL Server database server. It's an outer shell for authenticating credentials.

The database user, on the other hand, does not have proper credentials of its own and relies on the server login for authentication. The database user's is used directly for authorization, allowing rights to be granted to database objects such as procs, tables, views.

like image 165
Enull Avatar answered Feb 06 '23 10:02

Enull