What is state 123 for error 18456 on an Azure SQL Database? - sql-server

I have an Azure Webjob that can't connect to the database with the error "login failed for user". (Incidentally, the Web App uses the same connection string to connect without a problem).
Here are the details from the error log:
Error code: 18456
Error state: 123
I can't find any documentation on state 123. Can anyone tell me what it means?

We don't document the error state codes because they don't mean anything. They represent unique instances of an error in out code base to help us debug customer issues faster. So, it more or less maps to line x in source code file y.
Thanks,
Conor Cunningham
Architect, SQL Core Engine

I had some help from the Microsoft guys and they've updated the documentation: https://learn.microsoft.com/en-us/sql/relational-databases/errors-events/mssqlserver-18456-database-engine-error
States 122 - 124 means "Failure due to empty user name or password."

Error 18456 is a generic connection error and may have many causes. I would not pay too much attention to 123
Thanks,
Mirek

Related

User gets error number 18456 while trying to connect to Azure SQL database

There are many threads about this error but I did not find the answer yet.
We have Azure SQL database and the employees use 1 login to connect.
One colleague has problem with aonnectivity as recently her Azure account was deleted and then restored.
The account deletion may have triggered the issue.
Error Number: 18456
Severity: 14
State: 1
Line Number: 65536
Do you have any ideas what causes this error?
Any hints where I should dig to get an answer?
I have found Error 18456 with State 1 only during Microsoft Azure outages as shown here. To make sure visit #AzureSupport on Twitter or visit Azure Status. Sometimes Azure Support and Azure Status do not show any issues because issues may not be affecting a good number of customers, but you can still find out what is happening by going to Help + Support, choose Service Health, then examine "Health History" and "Resource Health" as shown on this article.
Another possible cause of this error is the status of your Azure Subscription. Maybe your subscription requires your attention.

Display user friendly msg on UI in case of error in SQL Server operation

I have a query. When we are dealing with Oracle DB and if any error appears, the system error message will contain an ORA "marker". Is there anything similar for SQL Server error messages?
My requirement is I need to display user friendly error message in the UI in case of an issue with a database operation.
For Oracle databases, I am checking in code like shown here:
if (error.message.includes('ORA').toLowerCase()) {
return res.send("DB related issue occurred while performing an operation."))
}
I need to do something equivalent for SQL Server. Please help. Thanks in advance.

Trouble at starting PostgreSQL instance

The POSTGRE SQL database associated with our AppEngine project does not start giving "An unknown error occurred". The first error of this kind is reported this morning, 22.05.2019 at 7:31 Spain time, and later trials on Starting the database have equally failed with the same "unknown error" message.
Is it possible that this is related to issue 19002 reported yesterday?
https://status.cloud.google.com/incident/cloud-sql/19002
We need your help to see what is happening and start the database as soon as possible. Thanks
It is possible that this Google Cloud SQL Incident #19002, cause a lot errors between this stage.
Cloud SQL provides the ability to replicate a master instance to one or more read replicas:
https://cloud.google.com/sql/docs/postgres/replication/create-replica

"SSPI handshake failed" from unknown location?

I realised a few minutes ago , in my sql server log; there was an error:
SSPI handshake failed with error code 0x8009030c, state 14 while
establishing a connection with integrated security; the connection has
been closed. Reason: AcceptSecurityContext failed. The Windows error
code indicates the cause of failure. The logon attempt failed
[CLIENT: 222.186.61.15]
But i don't have an sqlclient ip 222.186.61.15
I research this ip and :
Continent: Asia
Country: China cn flag
State/Region: Jiangsu Sheng
City: Nanjing
Is my Sql Server under attack?:)
What is this?
Thanks for help.
Short answer; probably, but don't panic.
Someone tried to log onto your SQL server with invalid login credentials. If its coming from an IP that's totally out there, then it's probably not just someone mistyping their password. I wouldn't be overly worried about it, though. Its pretty common to see stuff like this every once in a while. Usually, its someone or some tool going through a list of SQL servers and trying common login credentials in hopes of getting lucky.
Just make sure you have solid login credentials, maybe update your firewall/IDS, and watch your logs to make sure that IP (or another weird one) logs in later.

New connection in SQL Developer 01017

Status : Failure -Test failed: ORA-01017: invalid username/password; logon denied
This status above I see when I'm trying to create new Connection in SQL Developer 11g EE.
I tried propably all possibilites with lower/uppercases and numbers.
Here is printscreen: http://i.imgur.com/Ztc3OAS.jpg
I was searching for that, but coulnd find solution for this kind of problem.
Thank you in advance and sorry if this problem is trivial, but I am beginner in this:(

Resources