不在域中时使用 Windows 凭据通过 Management Studio 连接到 SQL Server
我有一个安装了 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
答案是 此处。在你提到的情况下非常有用。
基本上,打开 Management Studio 时需要使用 /netonly /user:domain\username 开关,如下所示:
希望有所帮助。
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:
Hope that helps.
细节有点不清楚,但如果您的工作站不在其域中,那么您输入的用户名是否为“域名\用户名”?
The detail is a bit unclear, but if your workstation is not on their domain then are you entering the username as 'domainname\username' ?