SQL Server Management Studio 2008 通过 VPN 在不同域上运行用户

发布于 2024-10-20 22:11:19 字数 482 浏览 8 评论 0原文

我当前正在尝试以不同域中的用户身份运行 SQL Server Management Studio 2008。我注意到在其他线程中,从批处理脚本运行以下命令将执行此操作,但它似乎对我不起作用。

runas /netonly /user:DOMAIN\USER "C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe"

系统要求我输入密码,出现登录屏幕,但是 Windows 身份验证用户名和密码仍然错误地是本地域上当前登录的模拟用户。无论如何,尝试连接到其他域上的数据库都会失败。

这似乎对大多数人都有效,对我来说最重要的是这个域存在于 VPN 连接上。我无法在网上邻居中查看 VPN 域网络计算机,因此无法在控制面板中添加用户。

不幸的是,我的操作系统是 Vista Business,我对此无能为力。

任何想法将不胜感激。

I am currently trying to run SQL Server Management Studio 2008 as a user who is on a different domain. I noticed in other threads that running the following command from a batch script will do this however it doesn't seem to work for me.

runas /netonly /user:DOMAIN\USER "C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe"

I am asked for my password, the Login screen appears however the Windows Authentication username and password are still incorrectly the currently logged in impersonated user on the local Domain. Attempting to connect to the database on the other domain is unsuccessful regardless.

This seems to work for most people, the kicker for me is that this domain exists over a VPN connection. I am not able to view the VPN domain network computers in My Network Places, and thus I cannot Add Users in Control Panel.

My OS is Vista Business unfortunately, I cannot help this.

Any ideas would be appreciated.

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

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

发布评论

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

评论(2

寄离 2024-10-27 22:11:19

试试这个:

NET USE \\DBSERVER /USER:DOMAIN\USERNAME

系统将提示您输入密码。这将与数据库服务器建立 NetBIOS 会话。完成此操作后,您应该能够在数据库服务器上看到共享文件夹和共享打印机。

如果有效,您应该能够像您自己一样使用 SSMS 进行连接。如果“命名管道”不能与 TCP 一起工作(但我认为可以),您可能必须指定“命名管道”作为要使用的网络协议。

  • 菜单 -> 文件 -> 连接对象资源管理器...
  • 选项 -> 连接属性 -> 网络协议
  • 指定“命名管道”

命名管道继承您现有的 NetBIOS 会话,因此只要您可以列出您可能擅长的共享去。

更新:在某些配置中,这似乎不适用于 TCP 连接(可能是由于某些安全更新)。在这些情况下,您应该启用命名管道,并在连接字符串中设置命名管道。

Try this:

NET USE \\DBSERVER /USER:DOMAIN\USERNAME

You will be prompted for your password. This establishes a NetBIOS session with the database server. You should be able to see the shared folders and shared printers on the database server once you have done that.

If that works you should be able to connect using SSMS as yourself. You may have to specify "named pipes" as the network protocol to usem, if it doesn't work with TCP (but I think it will).

  • Menu->File->Connect Object Explorer...
  • Options->Connection Properties->Network protocol
  • Specify "Named pipes"

Named Pipes inherits your existing NetBIOS session, so provided you can list the shares you are probably good to go.

Update: It looks like in some configurations this does not work with TCP connections, (possibly due to some security update). In these cases you should enable Named Pipes, and set named pipes in your connection string.

み青杉依旧 2024-10-27 22:11:19

您还可以尝试使用 Windows 凭据管理器:

在此处输入图像描述

单击右侧窗格(Windows 凭据),然后单击添加 Windows 凭据。在服务器下,使用数据库 IP 地址,后跟用户名和密码。它应该通过 SSMS 工作,但无法从 WCF 等应用程序调用它。

You can also try using Windows Credential Manager:

enter image description here

Click on the right pane (Windows Credentials) and on Add a Windows Credential. Under server, use the DB IP address follow by username and passoword. It should work through SSMS, but does not work calling it from an app such as WCF.

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