且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用 Windows 身份验证远程连接到 SQL Server 数据库?

更新时间:2022-04-24 10:44:22

必须在远程服务器上启用 Windows 身份验证才能执行此操作.这可以在服务器属性 > 安全性中启用,并通过选择 SQL Sever 和 Windows 身份验证单选按钮来启用.提供您的 Windows 凭据添加到服务器,然后您应该能够登录.

Windows authentication must be enabled on the remote server to do this. This can be enabled in server properties > Security and by selecting SQL Sever and Windows Aucthentication radio button. Providing your windows credentials are added to the server then you should be able to login.

在您的 SSMS 上,右键单击数据库名称选择属性,然后从左侧菜单中选择安全性,您应该会看到SQL Sever 和 Windows 身份验证"选项.

On your SSMS right click the database name select properties and select Security from the left hand menu and there you should see the "SQL Sever and Windows Aucthentication" option.

显然,如果您的数据库不在同一个域中,那么这可能不起作用.

Obviously if your database is not on the same domain then this might not work.