不在域中时使用 Windows 凭据通过 Management Studio 连接到 SQL Server

发布于 2024-08-10 06:40:07 字数 413 浏览 1 评论 0原文

我有一个安装了 SQL Server 2008 的客户端。他们在他们的域上给了我一个 Windows 域用户名/密码,但是,我的工作站不在他们的域上。我正在尝试连接 Vista Professional 上的 Management Studio。

我尝试过使用“用户帐户”下的“网络帐户”,这适用于其他资源(例如交换、TFS 和文件服务器),但对于 SQL Server,我没有使用这种方法。

另外,我不确定这是否是一个问题,但这是他们的数据库服务器上的开发实例。因此连接字符串是“Computer_Name\Instance”。

进一步的问题:我如何通过 cassini/Visual Studio 2008 获得 asp.net 的集成安全性。

到目前为止,我唯一的解决方案是放弃并使用 SQL Server 登录。我想知道我是否还有其他选择。

I have a client that has a SQL Server 2008 installation. They have given me a windows domain username/password on their domain, however, my workstation is not on their domain. I'm trying to connect with Management Studio on Vista Professional.

I've tried using the "network accounts" under "user accounts", and this works for other resources (such as exchange, TFS, and file servers) but I have had no luck with this approach for SQL Server.

Also, I'm unsure if this is a concern but this is a dev instance on their database server. So the connection string is "Computer_Name\Instance".

A further question: how could I get Integrated Security for asp.net through cassini/Visual Studio 2008.

So far my only solution is to cave and use a SQL Server Login. I'd like to know if I have any other options.

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

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

发布评论

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

评论(2

权谋诡计 2024-08-17 06:40:07

答案是 此处。在你提到的情况下非常有用。

基本上,打开 Management Studio 时需要使用 /netonly /user:domain\username 开关,如下所示:

runas /netonly /user:domain\username “C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe”

希望有所帮助。

The answer to this is here. Very useful in the situation you mention.

Basically, you need to use the /netonly /user:domain\username switches when opening management studio, like this:

runas /netonly /user:domain\username “C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe”

Hope that helps.

幽梦紫曦~ 2024-08-17 06:40:07

细节有点不清楚,但如果您的工作站不在其域中,那么您输入的用户名是否为“域名\用户名”?

The detail is a bit unclear, but if your workstation is not on their domain then are you entering the username as 'domainname\username' ?

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