在sql server 2005中连接时出现问题

编程入门 行业动态 更新时间:2024-10-19 04:30:49
本文介绍了在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中连接时出现问题

本文发布于:2023-11-23 20:41:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1622804.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:sql   server

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!