小编tom*_*msv的帖子

SQL Server 间歇性错误 40 无法打开与 SQL Server 的连接或找不到网络路径

根据以下堆栈跟踪,我收到间歇性错误。我将 C# 实体框架与在单独的服务器计算机上运行的 SQL Server 2012 企业版一起使用。我可以从开发机器使用 SSMS 连接和查询数据库。

重新启动服务器计算机是问题的短期解决方案。然后连接再次工作,至少一段时间(数小时或数天)。

如何在不需要重新启动服务器计算机的情况下长期诊断或修复此问题?

Exception.ToString():

System.Data.Entity.Core.EntityException:
The underlying provider failed on Open. ---> 
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. 
(provider: Named Pipes Provider, error: 40 - 
Could not open a connection to SQL Server) ---> 
System.ComponentModel.Win32Exception: The network path …
Run Code Online (Sandbox Code Playgroud)

sql-server entity-framework sql-server-2012

5
推荐指数
0
解决办法
4460
查看次数

跨设备传播 SQL Server 数据文件以提高性能?

如果我将.mdf(行数据)和.ldf(日志)文件放在不同的raid 磁盘组上,而不是将两个文件放在同一组raid 磁盘上,它会提高SQL Server 中数据库的性能吗?

performance sql-server

3
推荐指数
1
解决办法
2160
查看次数