This error is caused by the SQL Server service being disabled. Follow these steps to resolve the issue:
  1. Go to Start, Run
  2. Type Services.msc
  3. Find the SQL Server service
  4. Right-click and select Properties
  5. Change Startup Type to Automatic and click Start