Cannot connect to (local) sql server 2008

Make following steps to solve the issue:

Cannot connect to (local).

ADDITIONAL INFORMATION:

Login failed for user 'SA'. (Microsoft SQL Server, Error: 18456)

 

 

reference : MSSQLSERVER_18456

Connect to SQL Server local account using "Windows Authentication".

1> Right-click on local database, Properties-> Security -> Check "SQL Server and Windows Authentication mode", click "OK".

2> Under local database, navigate to Security -> Logins -> Right-click sql server account "sa", 

     a) Properties -> Status -> Login: -> Check "Enabled" 

     b) General -> Reset password.

Click "OK"

3> Right-click on local database, click "Restart".

4> Reconnect using "SQL Server Authentication",  enter sql server account "sa" and password, click "Connect", and you are in.

你可能感兴趣的:(SQL Server 2008)