You need to provide DomainName\UserName in the Login name field:
If you know the partial name of the user, you can use the Search button to get the whole name and also you can verify if the name you typed in is correct.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I want to know the exact steps to setting up a user for a database. When I go to LOGINS and selct new login, the login name seems to need to be specific. When I click search it is not accepting the login name I am typing in. The search button next to the field for the name entry is looking where to find the name?
Where is the name intially set up?
I am trying to use windows authentication. Is there a way to set it up so that anyone who has a login permission to the Windows server container will then be able to use the database without further setup?
Users need the usual permissions to read write append delete records.
Thank you for your assistance on this. I am using either SQL 2014 or SQL 2017 currently. I hope this process would also be the same for SQL 2019 or 2022.
Thank you
You need to provide DomainName\UserName in the Login name field:
If you know the partial name of the user, you can use the Search button to get the whole name and also you can verify if the name you typed in is correct.
the user name needs a domain. the default is local domain. on the search click location and pick the domain the user belongs to. then enter the name. you can also just include the domain with the user:
mydomain\username
if you want to add a group, change the object type to groups (or add groups) and use advanced search
To give a certain Windows user access to a certain database, you say:
CREATE LOGIN "Domain\User" FROM WINDOWS
USE MyDB
CREATE USER "Domain\User"
a lot easier than using the UI with all the search dialogs.
If you want to give all users on the server access to the database, I think you should be able to do that by using BUILTIN\Users instead of Domain\User. You can also use an AD Group.
Hi @Awicurrent ,
To set up a user for a SQL Server database using Windows authentication, you can follow these steps:
Best regards,
Seeya
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".