简体   繁体   中英

Azure VM SQL Server Access

I provisioned an Azure SQL Server VM instance (image: Free SQL Server License: SQL Server 2017 Developer on Windows Server 2016) using my Windows Account.

As part of the setup process I also created a server admin (VM_Admin) account for the VM. I can log into the VM using Remote Desktop with VM_Admin and and can start/stop SQL Server services, but then can't log into the SQL Server through SSMS ( Error:Login failed for user 'ServerName\\VM_Admin'. (Microsoft SQL Server, Error: 18456) )

I also have the Microsoft account that I used to set up the Azure VM in the first place, but that account can't connect to the VM at all through Remote Desktop ( Error: The credentials that were used to connect to --IP Address-- don't work. Please use new credentials. )

So... I have one account that can connect to the VM but not SSMS, and another that can't connect at all. What am I missing?

Thanks!

The generic message "Login Failed for User (Microsoft SQL Server, Error: 18456)" means you entered invalid credentials when logging into SQL Server.

You need to figure out what user does have rights to SQL server. Usually this is the user that you logged in with when you installed SQL Server or the user that is the default administrator on the computer. To get a list of users on the machine.

For more details refer: How to Fix Login Failed for User (Microsoft SQL Server, Error: 18456) Step-By-Step – Add SQL Administrator to SQL Management Studio

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM