Try the following in order to resolve this issue:
  1. Make sure the SQL Server service that your database is attached to is running.
  2. If issue persists, refer to How to troubleshoot login issues.