使用 DBeaver 连接到 SQL 服务器 Windows 身份验证

Connect to SQL Server Windows Authentication using DBeaver

目前,我正在使用 SQL Server Management Studio (SSMS) 连接到远程 SQL 服务器。 我们正在使用命令行连接到该服务器。

$ path\to\runas.exe /netonly /user:DOMAIN\USERNAME "path\to\Ssms.exe -S ip.xxx.yyy.zzz"

如何使用 DBeaver 连接到同一个远程数据库?我不断得到

Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.

其他信息:

  1. 身份验证方法:Windows身份验证
  2. SQL 服务器版本:12.0.5000 SP2
  3. DBeaver 版本:6.2.2.x
  4. 我们使用命令行的时候会提示输入密码

对于 DBeaver,您可能需要做同样的事情,就像这样:

$ path\to\runas.exe /netonly /user:DOMAIN\USERNAME "C:\Users\user\AppData\Local\DBeaver\dbeaver.exe -nl en"

然后,从 DBeaver New Connection 将 SQL 服务器身份验证更改为 Windows 身份验证。它将使用我们从 runas 传递的用户名。