提供者命名管道提供程序错误40 - 无法打开到sql server 2008的连接 [英] provider named pipes provider error 40 - could not open a connection to sql server 2008

查看:274
本文介绍了提供者命名管道提供程序错误40 - 无法打开到sql server 2008的连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



SQL Server名称:ECARE432

SQL实例名称:SQLEXPRESS



App.Config提到这样:



Hi All,

SQL Server Name : ECARE432
SQL Instance Name : SQLEXPRESS

App.Config mentioned like this:

<connectionstrings>
    <add name="TimeTracker.Properties.Settings.myecareConnectionString" connectionstring="Data Source=ECARE432;Initial <br mode=" hold=" /><br mode=" providername="System.Data.SqlClient" />
</connectionstrings>





这是来自Chennai的Arun。我用VS 2008开发了我在WPF(C#)中的第一个应用程序。 SQL Server 2008.它在我的系统中工作正常。



我的系统。部署后,它不会在其他系统中工作。它显示以下错误消息。



提供者命名管道提供程序错误40 - 无法打开到sql server 2008的连接



我已经通过谷歌并完成了以下步骤但没有用。





1.配置工具 - > SQL Server配置管理器 - > SQL Native Client配置

Aliases->

别名 - > ECARE432,1433

端口号 - > 1433

协议 - > TCP / IP

服务器名称 - > ECARE432



2.启用TCP / IP。协议 - > TCP / IP属性 - >

IP1 - >

Acive - 是

已启用 - 是

IP地址 - 我的系统IP地址

TCP动态端口 - 空白

TCP端口 - 1433



IP2 - >

Acive - 是

已启用 - 是

IP地址 - 127.0.0.1

TCP动态端口 - 空白

TCP端口 - 1433



IPALL - >

TCP动态端口 - 空白

TCP端口 - 1433





3 SQL Server Browser正在运行。



4.服务器名称是正确的。没有拼写错误。



5.客户机可以ping我的机器。 (PING ECARE432正在运行)



6. TCP 1433和UDP 1434异常添加到防火墙。同时在我的系统和客户端系统中关闭防火墙。



7. sqlbrowser.exe被添加到防火墙例外列表中。



8.允许在SQL Server属性中的Connections下启用远程连接。



9. Visual Studio - >工具 - > ;选项 - >数据库工具 - >数据连接 - >

将sqlexpress中的SQL Server实例名称更改为空白。





请指导我如何解决这个问题。



This is Arun from Chennai. I have developed my first application in WPF (C#) with VS 2008 & SQL Server 2008. It works fine in

my system. After deployment, it wont works in other systems. It shows the following error message.

provider named pipes provider error 40 - could not open a connection to sql server 2008

I have gone through the google and done the following steps but no use.


1. Configuration Tools->SQL Server Configuration Manager->SQL Native Client Configration
Aliases->
Alias Name -> ECARE432,1433
Port Number -> 1433
Protocol -> TCP/IP
Server Name -> ECARE432

2. TCP/IP is enabled. Protocols -> TCP/IP Properties ->
IP1 ->
Acive - Yes
Enabled - Yes
IP Address - My system IP address
TCP Dynamic Ports - Blank
TCP Port - 1433

IP2 ->
Acive - Yes
Enabled - Yes
IP Address - 127.0.0.1
TCP Dynamic Ports - Blank
TCP Port - 1433

IPALL ->
TCP Dynamic Ports - Blank
TCP Port - 1433


3. SQL Server Browser is running.

4. Server Name is correct. No typo mismatch.

5. Client machine is able to ping my machine. (PING ECARE432 is working)

6. TCP 1433 and UDP 1434 Exception added to Firewall. Also Turned off the Firewall in both my system and the client system.

7. sqlbrowser.exe is added to the Firewall Exception List.

8. Allow Remote Connections enabled under Connections in SQL Server Properties.

9. Visual Studio-->Tools-->Options-->Database Tools-->Data Connections-->
Changed "SQL Server Instance Name" from "sqlexpress" to blank.


Please guide me how to fix this issue.

推荐答案

我已经从ECARE432更改为我的系统IP地址在连接字符串中并修复错误。
I have changed from ECARE432 to my system ip address in the connection string and the error fixed.


这篇关于提供者命名管道提供程序错误40 - 无法打开到sql server 2008的连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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