SQL Server 2005远程连接问题

发布于 2024-09-05 09:28:23 字数 1030 浏览 3 评论 0原文

我在两台计算机上安装了 SQL Server 2005 Express。我在两台计算机上安装了 SQL Server Management Studio Express。我运行 Management Studio 的每个实例,并使用 Windows 身份验证连接到 SQL Server(一台计算机的连接示例:“A-63A9D4D7E7834\SQLEXPRESS”)。我创建了一个名为“test1”的数据库,并创建了一些保存数据的表。

我按照该网站所述执行了所有操作:如何配置 SQL Server 2005 以允许远程连接”,只是我已完全禁用防火墙。

我连接到 A-63A9D4D7E7834,在计算机 A-63A9D4D7E7834 上启动“SQL Server Management Studio Express”: 服务器名称:“ALL-E425BE6C41D\SQLEXPRESS”
身份验证:“Windows 身份验证”
并点击“连接”。我收到以下错误:

无法连接到 全部-E425BE6C41D\SQLEXPRESS。

其他信息:

用户登录失败 'ALL-E425BE6C41D\访客'。 (微软 SQL Server,错误:18456)

如需帮助,请点击: http://go。 microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=18456&LinkId=20476

我该如何解决此问题?

I installed SQL Server 2005 express on two computers. I installed SQL Server Management Studio Express on both computers. I ran each instance of Management Studio and connected to SQL Server using Windows authentication (one computer's connection example: "A-63A9D4D7E7834\SQLEXPRESS"). I created a database named "test1" and created a few tables with data saved.

I did everything this site says: How to configure SQL Server 2005 to allow remote connections", except that I have disabled the firewalls completely.

I connected to A-63A9D4D7E7834, started "SQL Server Management Studio Express" on computer A-63A9D4D7E7834:
sever name: "ALL-E425BE6C41D\SQLEXPRESS"
authentication: "windows authentication"
and hit 'Connect'. I get the following error:

Cannot connect to
ALL-E425BE6C41D\SQLEXPRESS.

ADDITIONAL INFORMATION:

Login failed for user
'ALL-E425BE6C41D\Guest'. (Microsoft
SQL Server, Error: 18456)

For help, click:
http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=18456&LinkId=20476

What can I do to resolve this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

疑心病 2024-09-12 09:28:23

除非您在 SQL Server 上拥有 ALL-E425BE6C41D\Guest 的登录名,否则您的登录将会失败。如果您使用的是 Windows 身份验证,则登录到您的计算机,并在具有 SQL Server 权限的帐户(通常是您安装它的帐户)下启动 SQL Server Management Studio Express。

Unless you have a login on the SQL Server for ALL-E425BE6C41D\Guest your login will fail. If you are using Windows Authentication, then log in to your machine and fire up SQL Server Management Studio Express under the account that has privileges on the SQL Server - usually the account you installed it under.

与风相奔跑 2024-09-12 09:28:23

如果执行以下操作:

在两台 PC 上打开 SQL Management studio 并执行以下步骤:

  • 启用混合身份验证模式(服务器属性 > 安全性)

  • < p>在对象资源管理器中创建一个新用户(安全>登录)

    • 在新用户窗口中填写明显的内容(取消选中密码过期框!)并
      转到用户映射并将数据库分配给用户并分配“dbOwner”角色。

    • 现在,从计算机 A 连接到新的数据库引擎并提供服务器 B 的服务器名称并使用 SQL Server 身份验证。你能说出你得到了什么错误吗?

我刚刚测试过这个,对我来说一切正常。

What if you do the following:

Open SQL Management studio on both PC's and perform the following steps:

  • Enable mixed authentication mode (Server properties > Security)

  • In Object Explorer create a new user (Security > Login)

    • In new user window fill in the obvious stuff (uncheck passwod expire box!) and
      go to User Mappings and assign databases to the user and assign 'dbOwner' role.

    • Now, from machine A, connect to a new DB Engine and provide the server name of server B and use SQL server authentication. Can you tell what error you get?

I just have tested this and for me it works all fine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文