问题描述如下
System.Data.SqlClient.SqlException:“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.
解决方案
服务器名称错误
打开sql server
标注处即为服务器名
在此处更改就解决啦!