SQL Server DBA Tutorial 56- How to Map a User to an Existing Login in SQL Server

preview_player
Показать описание
This video shows step by step process of mapping a user with an existing login using SQL Server Management studio as well as using T-SQL script. It also describes what are orphan users in SQL Server and how can you fix Orphan users in SQL Server. How to map multiple users to a single login. It also walk you through setting up default schema, default database and securables of a user in SQL Server database.

Blog post link for this video:

Visit our website to check out SQL Server DBA Tutorial Step by Step
Рекомендации по теме
Комментарии
Автор

In video description it is said how to create user but we are using windows user.
Please explain how to create new DB user manually?

also please let me know as per best practices, we create lognin first and then user or vice versa?

paragkambli
Автор

You mentioned that multiple users can be created under same login, but when I tried that Sql server gave me an error.

Msg 15063, Level 16, State 1, Line 5
The login already has an account under a different user name.

yaddu
Автор

Can a created login map itself to a database? I created a login with a password and then logged in as the newly created login. I was then able map myself to a database. Is that suppose tp happen? I thought only the sysadmin could map a login to a user

darotweiler