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
Securitypage -
Under
Server authenticationchoose theSQL Server and Windows Authentication moderadio button -
Click
OK -
Restart SQL Services
Source : Stackoverflow