给别人做的网站莫名其妙连接不上数据库。百度了好多,总算知道自己的错在哪了。也许不是很条理,只是按当时的思绪整理的。
报
“A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible.
Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)”的错
注:红字mark一下解决当中遇到的报的各种错
1、首先想到启动数据库,登录用户时,数据库登录失败【没截图,盗用一张别人的图】