当我尝试打开PC上安装的项目时,显示SQL错误26 [英] When i try to open my project installed on pc then sql error 26 is showing

查看:118
本文介绍了当我尝试打开PC上安装的项目时,显示SQL错误26的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在任何其他PC中打开我的项目(安装在系统上的安装程序)时,打开错误26与SQL Server建立连接时发生了与网络相关的错误."

when i try to open my project (set up installed on system) in any other pc open " error 26 a network related error occurred while establishing a connection to sql server."

推荐答案

这是一个疯狂的猜测,因为您没有提供任何信息,但是:请检查您的连接字符串.我猜想您已经对其进行了硬编码,以使其与其他PC上不存在的本地SQL Server实例一起使用.
It''s a wild guess, because you have provided no information whatsoever, but: check your connection string. I am guessing that you have hard-coded it to work with your local SQL server instance, which is not present on the other PC.


首先,请确保SQL Server服务是跑步.其他原因可能是错误的连接字符串或某些防火墙阻塞.

在这里,请查看此博客文章以解决问题:异常-错误26-错误定位了指定的服务器实例 [ ^ ]
提供程序:SQL网络接口,错误:26-错误定位服务器/实例... [ ^ ]
未找到指定的SQL Server" o .. [^ ]
First and foremost make sure that the SQL Server services are running. Other reasons could be, incorrect connection string or some Firewall blockage.

Here, have a look at this blog post to troubleshoot the issue : MSDN Blogs: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified[^]

If needed, look at these one:
Exception - error 26 - Error Locating Server Instance Specified[^]
provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance...[^]
"Specified SQL server not found" o..[^]


这篇关于当我尝试打开PC上安装的项目时,显示SQL错误26的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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