如何使用 SSPI 集成安全性连接到 SQL Server Mgmt Studio 中的 SQL Server

发布于 2024-09-03 19:03:26 字数 223 浏览 4 评论 0原文

我有一个 asp.net Web 应用程序,该应用程序在项目的 web.config 文件中包含此内容,

server=[server],15001;Integrated Security=SSPI;Database=DB_NAME

因为连接字符串中没有使用或密码,所以我如何从 Sql server mgmt studio 连接到此数据库。我正在从远程计算机连接

i have an asp.net web app that has this in the web.config file in the project

server=[server],15001;Integrated Security=SSPI;Database=DB_NAME

how do i connect to this database from Sql server mgmt studio since there is not use or password in the connection string. i am connecting from a remote machine

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

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

发布评论

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

评论(1

二智少女 2024-09-10 19:03:26

当您使用“集成安全性”进行连接时,它将使用进程的当前 Windows 凭据 - 在连接到 SSMS 的情况下,它将使用您当前的 Windows 用户。如果您的 Windows 用户有权访问 SQL Server,则您可以使用集成安全性进行连接。

如果您需要使用集成安全性连接到 SQL Server,但作为另一个用户,则需要在 SSMS 上执行“运行身份...”以将其作为不同用户加载。

When you connect using "Integrated Security", it uses the current Windows credentials of the process - in the case of connecting to SSMS, it will use your current Windows user. If your Windows user has rights to the SQL Server, then you can connect using Intergrated Security.

If you need to connect to the SQL Server using Integrated Security, but as another user, you'll need to do a "Run As..." on SSMS to load it as the different user.

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