Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Login to Microsoft SQL Server Error: 18456

I am getting this error while trying to connect to the SQL Server.

Microsoft SQL Server Error: 18456

Can anybody tell me what the error code means?

like image 913
merazuu Avatar asked Jan 04 '14 15:01

merazuu


People also ask

Why SQL authentication is not working?

Check out Windows or Mixed authentication mode is enabled. For that, select the database, right click on it, and choose “Properties”. In the Security tab, check out the server authentication section. If the authentication mode is changed, then do not forget to restart SQL Server to allow changes to take place.

How do I fix login failed for SA?

Go to your server, click on Security and then Logins, right click on sa and then click on Properties. Now go tot Status and then select Enabled under Login. Then, click OK. Now we can restart the SQLExpress, or the SQL you are using.

How do I change SQL Server authentication mode?

In SQL Server Management Studio Object Explorer, right-click the server, and then click Properties. On the Security page, under Server authentication, select the new server authentication mode, and then click OK.


1 Answers

If you're trying to connect using "SQL Server Authentication" then you may want to modify your server authentication:

Within the Microsoft SQL Server Management Studio in the object explorer:

  1. Right click on the server and click Properties

  2. Go to the Security page

  3. Under Server authentication choose the SQL Server and Windows Authentication mode radio button

  4. Click OK

  5. Restart SQL Services

like image 190
Ali Kashanchi Avatar answered Sep 20 '22 17:09

Ali Kashanchi