SQL服务器连接 [英] SQL server connection

查看:84
本文介绍了SQL服务器连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我能够在我的计算机上连接到MS SQL Server 2005,但是在我不能的情况下获得了
。当我想使用MS SQL Server连接到它时

Management Studio我收到此错误:


建立与服务器的连接时发生错误。

当连接到SQL Server 2005时,这个失败可能是由于在默认设置下SQL Server不允许远程

连接。 (提供者:命名管道提供者,错误:40 - 无法

打开与SQL Server的连接)(。Net SqlClient数据提供者)


错误号码: 2

严重程度:20

状态:0


你能帮帮我吗?

谢谢你提前很多。

Hi All,

I was able to connect to MS SQL Server 2005 on my computer but after a
while I can not. When I want to connect to it using MS SQL Server
Management Studio I got this error:

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: Named Pipes Provider, error: 40 - Could not
open a connection to SQL Server) (.Net SqlClient Data Provider)

Error Number: 2
Severity: 20
State: 0

Can you help me?
Thanks a lot in advance.

推荐答案

sara(sa********@gmail.com)写道:
sara (sa********@gmail.com) writes:

我能够在我的计算机上连接到MS SQL Server 2005,但是在我不能的情况下获得了
之后。当我想使用MS SQL Server连接到它时

Management Studio我收到此错误:


建立与服务器的连接时发生错误。

当连接到SQL Server 2005时,这个失败可能是由于在默认设置下SQL Server不允许远程

连接。 (提供者:命名管道提供者,错误:40 - 无法

打开与SQL Server的连接)(。Net SqlClient数据提供者)


错误号码: 2

严重性:20

状态:0
I was able to connect to MS SQL Server 2005 on my computer but after a
while I can not. When I want to connect to it using MS SQL Server
Management Studio I got this error:

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: Named Pipes Provider, error: 40 - Could not
open a connection to SQL Server) (.Net SqlClient Data Provider)

Error Number: 2
Severity: 20
State: 0



您是否在本地运行SQL Server?你有没有检查过它是什么?b $ b还在运行?


这不是你安装了SQL Express而你忘了指定

实例名称?

-

Erland Sommarskog,SQL Server MVP, es****@sommarskog.se


SQL Server 2005联机丛书
http://www.microsoft.com/technet/pro...ads/books.mspx

SQL Server 2000联机丛书
http://www.microsoft.com/sql/prodinf...ons/books.mspx

So you have SQL Server running locally? Have you checked that it is
still running?

It''s not that you have SQL Express installed and you forgot to specify
the instance name?
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx





感谢您的回复。我在本地使用SQL Server。我无法运行

SQL Server。我对SQL Express不是很熟悉,但我不认为

我在安装后改变了它的任何内容。谢谢。

Erland Sommarskog写道:
Hi,

Thanks for your response. I use the SQL Server locally. I can not run
SQL Server. I am not very familiar with SQL Express but I do not think
I changed anything realted to it after installation. Thanks.
Erland Sommarskog wrote:

sara(sa********@gmail.com)写道:
sara (sa********@gmail.com) writes:

我能够在我的计算机上连接到MS SQL Server 2005但是在我没有的情况下获得了
之后。当我想使用MS SQL Server连接到它时

Management Studio我收到此错误:


建立与服务器的连接时发生错误。

当连接到SQL Server 2005时,这个失败可能是由于在默认设置下SQL Server不允许远程

连接。 (提供者:命名管道提供者,错误:40 - 无法

打开与SQL Server的连接)(。Net SqlClient数据提供者)


错误号码: 2

严重性:20

状态:0
I was able to connect to MS SQL Server 2005 on my computer but after a
while I can not. When I want to connect to it using MS SQL Server
Management Studio I got this error:

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: Named Pipes Provider, error: 40 - Could not
open a connection to SQL Server) (.Net SqlClient Data Provider)

Error Number: 2
Severity: 20
State: 0



您是否在本地运行SQL Server?你有没有检查过它是什么?b $ b还在运行?


这不是你安装了SQL Express而你忘了指定

实例名称?


-

Erland Sommarskog,SQL Server MVP, es **** @ sommarskog.se


SQL Server 2005联机丛书
http://www.microsoft.com/technet/pro...ads/books。 mspx

SQL Server 2000联机丛书
http://www.microsoft.com/sql/prodinf...ons/books.mspx


sara(sa********@gmail.com)写道:
sara (sa********@gmail.com) writes:

感谢您的回复。我在本地使用SQL Server。我无法运行

SQL Server。我对SQL Express不是很熟悉,但我不认为

我在安装后改变了它的任何内容。谢谢。
Thanks for your response. I use the SQL Server locally. I can not run
SQL Server. I am not very familiar with SQL Express but I do not think
I changed anything realted to it after installation. Thanks.



所以你验证SQL Server是否正在运行?使用SQL Server

配置管理器来检查这一点。您可以在子菜单配置工具下的SQL Server程序

组中找到它。


-

Erland Sommarskog ,SQL Server MVP, es****@sommarskog.se


联机丛书for SQL Server 2005
http ://www.microsoft.com/technet/pro...ads/books.mspx

SQL Server 2000联机丛书
http://www.microsoft.com/sql/prodinf...ons/books.mspx

So did you verify that SQL Server is running? Use the SQL Server
Configuration Manager to examine this. You find it in the SQL Server program
group, under the sub-menu Configuration Tools.

--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx


这篇关于SQL服务器连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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