SQL Management Studio 无法更改 Windows 身份验证用户(非 Express)
我想连接到域中的 SQL 数据库。我可以毫无问题地 ping 服务器,并且我正在从 VPN 连接到它。
问题出在 SQL Management Studio 中,当选择 Windows 身份验证(而不是 SQL 身份验证)时,这出现在建立新连接对话框上。用户名字段已禁用,因此您不能只输入 [domain]\username。
这对我来说是一个相当大的阻碍,但我不敢相信管理工作室是如此有限,以至于不允许您连接除登录用户之外的帐户。
是我的安装有问题还是本来就是这样?
有什么解决方法吗?如果不是比 SQL Management Studio(我有点喜欢)更好的工具。
谢谢
I want to connect to a SQL Database that is on a domain. I can ping the server no problem, and I'm connecting to it from a VPN.
The problem is in SQL Management Studio, when Windows Authentication is selected (as opposed to SQL Authentication) and this is on the make new connection dialog. The Username field is disabled, so you can't just type in [domain]\username.
This is a pretty big show stopper for me, but I can't believe management studio is so limited as to not allow you to connect with an account other than logged in user.
Is there something wrong with my installation or is this the way it is?
Any work arounds? If not a better tool than SQL Management Studio (which I kinda like).
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您启动 SSMS 时需要使用
runas .. netonly
以使用具有不同凭据的 Windows 身份验证(您可能需要根据您所在的版本更改可执行文件的路径)注意:如果您在尝试此操作时收到通用的“无效凭据”类型消息,请阅读下面的评论轨迹!
You need to use
runas .. netonly
when starting up SSMS to use Windows Authentication with different credentials (You might need to change the path to the executable depending upon what version you are on)NB: To future readers if you get a generic "invalid credentials" type message when trying this please read the comments trail below!