Error code

SQL Server 18456

SQL SERVER18456
Database Error Code· An error code returned by a database server such as PostgreSQL or MySQL.

What it means

login failed for user — authentication rejected.

How to fix it

  1. Verify the username and password in the connection string.
  2. Unlock or re-enable the SQL Server login with ALTER LOGIN <name> ENABLE.
  3. Check the SQL Server error log for the exact state code in the 18456 message for a more specific diagnosis.

Not affiliated with SQL Server. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.