This probably is the issue because Windows turn off some services to optimize the windows performance, You should Try this:
Search Services
in your search bar and open it, Search for SQL Server Services
from the list of services, right-click > start and try connecting to your SQL Server again. make sure they are running
如果要输入正确的数据库凭据,请从控制面板的“服务”选项卡中启动MSSQLSERVER服务
Probably you might want to start SQL server using SQL server configuration Manager (you can find it directly from Start menu) or you can go to the path in your C Drive based on SQL server version
See link from Microsoft: https://docs.microsoft.com/en-us/sql/relational-databases/sql-server-configuration-manager?view=sql-server-2017
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.