Solution: Login failed for user 'sa'. Microsoft SQL Server, Error 18456

Introduction

Login failed for user 'sa'. Microsoft SQL Server, Error 18456

Login failed for user 'sa'. (Microsoft SQL Server, Error 18456)" is the most common error in SQL server login. There are multiple reasons for this error. One potential reason is you are trying to use SQL Server Authentication, but the SQL server instance is configured for Windows Authentication mode.

SQL Server Login failed Resolving Problem Guide

Step 1

First, Connect the Windows Authentication SQL Server

Login failed for user 'sa'. Microsoft SQL Server, Error 18456

Next, select the security tap, then the Logins Tab, select the sa username properties, select the permission grant option, and Login Enable the click OK.

Login failed for user 'sa'. Microsoft SQL Server, Error 18456

Step 2

Select the server, right-click, Select the properties

Login failed for user 'sa'. Microsoft SQL Server, Error 18456

Next, select the Security Tab -> SQL server and Windows Authentication mode option select, then Click OK.

Login failed for user 'sa'. Microsoft SQL Server, Error 18456

Next, Restart the SQL Server. Click the Yes button

Login failed for user 'sa'. Microsoft SQL Server, Error 18456

Next, Connect the SQL Server Authentication

Login failed for user 'sa'. Microsoft SQL Server, Error 18456

Then successfully connected

Login failed for user 'sa'. Microsoft SQL Server, Error 18456

Conclusion

This article taught us Login Failed SQL Server authentication 18456 code error. If you have any questions, please contact me.

Thanks.


Similar Articles