SQL--关于“Cannot connect toXXXserver” “error:40”

来源:互联网 发布:win域名需要备案吗 编辑:程序博客网 时间:2024/06/06 00:50

背景:刚刚安装完数据库SQL,结果"windows Authentication"不能连接到服务器,如图:


解决方法:

1、Configuration Tools-->SQL Server Configuration Manager-->Proticols for MSSQLSERVER(under "SQL Server Nerwork Configuration")-->"TCP/IP" ,"Named Pipes" Enabled

2、under "SQL Server Services"-->let "SQL Server(MSSQLSERVER)" start,the State becoming"Running".

3、connect the SQL.

原创粉丝点击