Verify that the SQL Server service (SQL Express) is running.
at the command line prompt:
Get-Service -Name 'MSSQL$SQLEXPRESS'
the property "status" of the service should be indicated as "Execution"
If this is not the case, enter (you should be in the mode of elevated prompts, i.e., "Run as administrator"):
Start-Service -Name 'MSSQL $ SQLEXPRESS'
OR
click start> type cmd and type
sc query MSSQL$SQLEXPRESS
The status should be indicated as "Launch"
If this is not the case, enter (you should be in the mode of elevated prompts, i.e., "Run as administrator"):
sc start MSSQL$SQLEXPRESS
If you receive an error message that the service could not be found: Open SQL Server Configuration Manager and make sure that you have SQL Server installed: 
Pencho ilchev
source share