在sql server 2005中连接时出现问题 [英] Getting Problem When connecting in sql server 2005

查看:65
本文介绍了在sql server 2005中连接时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了sql server 2005,当我要打开并连接它时,它显示此错误,我不知道为什么会发生这种情况,任何人都可以帮助我.



Canonot连接到SQLExpress
附加信息
建立到服务器的连接时发生错误,当连接到sql server 2005时,此失败可能是由于在默认设置下sql server死于不允许远程连接的事实所致((提供:名称管道,错误40-不能打开到SQL Server的连接)(Microsfot Sql Server,错误,1231)一组指针,可帮助您自己解决问题.
问题是我们对您的设置一无所知-我怀疑您也不知道! :laugh:

首先要做的是尝试使用SQL Server Management Studio或Visual Studio建立连接.

对于前者,只需启动它,然后会出现一个连接对话框.
选择服务器类型"作为数据库引擎",然后使用服务器名称"下拉列表选择浏览更多".希望至少可以识别服务器本身. 身份验证"取决于您-毕竟,您要设置服务器!

在VS中类似:
1)打开服务器资源管理器"窗格.
2)右键单击数据连接",然后选择添加连接"
3)在随后的对话框中,选择您的数据源和数据库,指定安全信息,然后按测试连接"按钮.
4)连接正常后,按确定"
5)在服务器资源管理器"窗格中突出显示您的数据库,然后查看属性"窗格.将显示一个连接字符串的工作示例,您可以将其复制并粘贴到您的应用程序或配置文件中.

抱歉,不能确定,但​​是我们看不到您的系统!


hi i have installed sql server 2005 and when i am going to open and connect it is showing this error i don''t know why it is happening can any one help me .



Canonot Connect to SQLExpress
Additional information
an error ha occured while establishing a connection to the server, when connection to sql server 2005, this failure may be caused the fact that under the default setting sql server dies not allow remote connection,(provide:Name pipes, error 40-could not open coneection to sql server)(Microsfot Sql Server, error, 1231)

解决方案

That isn''t a question that we can give you an absolute answer to: just a set of pointers to help you work it out yourself.
The problem is that we don''t know anything about your set up - and I suspect nor do you! :laugh:

The first thing to do is to try and set up a connection using either SQL Server Management Studio or Visual Studio.

For the former, just start it, and a connection dialog will appear.
Select "Server Type" as "Database engine" and use the drop down by "Server Name" to select "browse for more". Hopefully that will at least identify the server itself. "Authentication" is down to you - you set the server up, after all!

In VS it is similar:
1) Open Server Explorer pane.
2) Right click "Data connections" and select "Add connection"
3) In the dialog that follows, select your DataSource, and database, specify the security info, and press the "Test connection" button.
4) When the connection works, press "OK"
5) Highlight your database in the Server Explorer pane, and look at the Properties pane. A working example of the connection string will be shown, which you can copy and paste into your app or config file.

Sorry to be vague, but we can''t see anything about your system!


这篇关于在sql server 2005中连接时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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