All jobs / Database administrator / Security

Database administrator interview question · 0–1 years

What is the difference between a server-level login and a database-level user, and why does it bite you after a restore?

The strongest answer

The login authenticates to the instance; the user lives in one database and holds the permissions. Restore that database elsewhere and the users arrive without their logins, so they must be remapped

Why it works

Right — authentication at the instance, authorisation inside the database, and the mapping between them is what a restore leaves dangling.

What a good answer covers

Answers that fall short

Who gets asked this

More Security questions