I created an AD user through Administration tool then performed following commands:
-- Add AD user EX. thu1 to database master
USE [master]
GO
CREATE LOGIN [QALAB\ABC1] FROM WINDOWS WITH DEFAULT_DATABASE=[master]
GO
-- Add AD user to database test_db
USE [test_db]
GO
CREATE USER [QALAB\ABC1] FOR LOGIN [QALAB\ABC1]
GO
-- Add AD user role in database
USE [test_db]
GO
ALTER ROLE [db_datareader] ADD MEMBER [QALAB\ABC1]
GO
Now I expect to login to SQL Server using QALAB\ABC1, but can not. I can't see this user under windows authentication. I tried active directory with password option as well but still no success.
Active Directory with Passwordis for Azure cloud only. Azure Active Directory Authentication is a mechanism of connecting to MicrosoftAzure SQL Database by using identities in Azure Active Directory (Azure AD). Use this method for connecting to SQL Database if you are logged in to Windows using credentials from a domain that is not federated with Azure, or when using Azure AD authentication using Azure AD based on the initial or the client domain. Details here. – SqlWorldWide Apr 16 '18 at 16:01QALAB\ABC1in order to connect to SQL Server as that user. You cannot (for example) start SQL Server Management Studio, select Windows Authentication, and then enter the Windows username and password you want to use - SQL will use the Windows username used to launch SSMS to connect, and those fields should be left blank when using Windows Authentication. – RDFozz Apr 16 '18 at 21:40