sql server2008中的登录问题 [英] login problem in sql server2008

查看:75
本文介绍了sql server2008中的登录问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

与SQL Server建立

连接时发生与网络相关或特定于实例的错误。找不到服务器或无法访问服务器。

验证实例名称是否正确,以及SQL Server是否配置为允许远程连接。 (提供者:命名管道提供程序,错误:40 - 无法打开与SQL Server的连接
)(Microsoft SQLserver,错误:53)

解决方案

请仔细阅读消息错误:验证实例名称是否正确,以及SQL Server是否配置为允许远程连接。



这里有几个链接。请阅读它以找到解决方案。

配置远程访问服务器配置选项 [ ^ ]

配置服务器以在备用管道上侦听(SQL Server配置管理器) [ ^ ]

如何:为数据库实例启用TCP / IP协议 [ ^ ]

配置Windows允许SQL Server访问的防火墙 [ ^ ]

< a href =http://technet.microsoft.com/en-us/library/aa178138%28v=sql.80%29.aspx>命名管道与TCP / IP套接字 [ ^ ]

这不是我们可以解决的问题:我们无法访问您的系统。

尝试通过SSMS连接,看看你需要什么,或者使用VS和它将为您提供连接字符串:

尝试使用Server Explorer窗格在VS中设置连接:

1)打开服务器资源管理器。

2)右键单击数据连接并选择添加连接

3)在随后的对话框中,选择您的数据源和数据库,指定安全信息,然后按测试连接按钮。

4)当连接工作时,按确定

5)突出显示您的数据库在服务器资源管理器窗格中,查看属性窗格。将显示连接字符串的工作示例,您可以将其复制并粘贴到您的应用程序或配置文件中。


A network-related or instance-specific error occurred while establishing a
connection to SQL Server.The server was not found or was not accessible.
Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a
connection to SQL Server) (Microsoft SQLserver ,error:53)

解决方案

Please, carefully read the message error: Verify that the instance name is correct and that SQL Server is configured to allow remote connections..

Here is few links. Please read it to find a solution.
Configure the remote access Server Configuration Option[^]
Configure a Server to Listen on an Alternate Pipe (SQL Server Configuration Manager)[^]
How to: Enable the TCP/IP Protocol for a Database Instance[^]
Configure the Windows Firewall to Allow SQL Server Access[^]
Named Pipes vs. TCP/IP Sockets[^]


This is not a problem we can solve: we have no access to your system.
Try connecting via SSMS and see what you need, there, or use VS and it will provide you with a connection string:
Try setting up a connection in VS with the Server Explorer pane:
1) Open Server Explorer.
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.


这篇关于sql server2008中的登录问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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