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:
-
Right click on the server and click
Properties
-
Go to the
Security
page -
Under
Server authentication
choose theSQL Server and Windows Authentication mode
radio button -
Click
OK
-
Restart SQL Services
Source : Stackoverflow