Windows窗体仅在某些PC上连接到SQL DB [英] Windows Form Connects to SQL DB on only some PC's

查看:105
本文介绍了Windows窗体仅在某些PC上连接到SQL DB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个连接到SQL的窗体,大约在5/10 PC上,但在另一台PC上,我得到以下错误:

I have a windows form that connects to SQL just fine on about 5/10 PC''s but on the other pc''s i get the following error:

System.Data.SqlClient.SqlException (0x80131904): 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)



我一直在寻找解决方法,但我''我真的不知道该怎么办。



如果需要任何其他信息,请告诉我。



请帮助!!


I''ve been searching for ways to resolve this but I''m not really sure what to do.

Let me know if any other information is needed.

Please Help!!

推荐答案

这篇technet文章如何解决连接到SQL Server数据库引擎的问题 [ ^ ]可以帮助您解决问题。
This technet article How to Troubleshoot Connecting to the SQL Server Database Engine[^] might help you troubleshoot the problem.


这篇关于Windows窗体仅在某些PC上连接到SQL DB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆