建立与服务器的连接时发生错误 [英] An error has occurred while establishing a connection to the server
问题描述
单击菜单项时出现此错误.
建立与服务器的连接时发生错误.连接到SQL Server 2005时,此故障可能是由于以下事实导致的:在默认设置下,SQL Server不允许远程连接. (提供者:TCP Provider,错误:0-连接尝试失败,因为一段时间后连接方未正确响应,或者连接建立因连接主机未能响应而失败.)
在该菜单中,先前的菜单正在运行.这是最后一个菜单.如果我选择此选项,则相应的表单未打开.
如果有人知道解决方案,请帮助我.
谢谢
Hi,
I got this error when i click menu item.
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)
In that menu, previous menus are working. This is the last menu. If i select this the corresponding form is not open.
If anybody know solution to this please help me.
Thanks
推荐答案
服务器名称未更新.我在相应的源代码中更改了它的工作原理.谢谢所有
Hi,
server name is not updated. I changed that in corresponding source code its working now. Thanks for all
按照以下链接中的说明进行设置
Do the settings as per the instructions from the below link
http://blog.sqlauthority.com/2009/05/21/sql-server-fix-error-provider-named-pipes-provider-error-40-could-not-open-a-connection-to-sql-server-microsoft-sql-server-error/
嘿,
检查您是否已与数据库服务器连接.
祝你好运
Hey,
check u are connected with Database Server or not.
Best Luck
这篇关于建立与服务器的连接时发生错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!