Problem:
I have logged in to the SQL Server using winodws authentication and created a new login with SQL authentication. Then tried login with the new login and got the error as login failed for the user even though the username and password that I entered was correct. This is the error message I got.Cannot connect to server ip address. Login failed for user ‘sql-user’. (Microsoft SQL Server, Error: 18456)

Solution:
The problem was not with the incorrect username or password. The SQL Server was configured with only windows authentication mode.

