An Azure relational database service.
I cannot connect at all.
I have not changed anything in the past year for any of this to happen.
How can I open a support ticket?
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I haven't changed anything in Azure in over a year. All of a sudden, I can't access my sql server databases. From SSMS 2022 I get error "Login failed for user 'myUser'. (Microsoft SQL Server, Error: 18456)"
From the Azure portal login, I get "The username or password is incorrect. Check your credentials and try again."
I can't access the support tickets or an Azure customer rep.
What can I do?
An Azure relational database service.
I cannot connect at all.
I have not changed anything in the past year for any of this to happen.
How can I open a support ticket?
I cannot connect at all.
I have not changed anything in the past year for any of this to happen.
How can I open a support ticket?
Error 18456 with the Azure portal showing “The username or password is incorrect” indicates an authentication failure for the login being used.
Take these steps, in order:
master database:
SELECT name, is_disabled FROM sys.sql_logins;
MyUser appears with is_disabled = 1, enable it:
ALTER LOGIN MyUser ENABLE;
CREATE LOGIN MyUser
WITH PASSWORD = 'Strong_New_Password_Here';
GO
USE <YourDatabase>;
GO
CREATE USER [MyUser]
FOR LOGIN [MyUser]
WITH DEFAULT_SCHEMA = [dbo];
GO
EXEC sp_addrolemember N'db_owner', N'MyUser';
GO
db_owner if appropriate.If no administrator account can connect at all, a subscription or server-level admin with portal access must regain access (for example, by resetting the server admin password in the Azure portal) and then perform the steps above.
References: