简体   繁体   中英

Login SQL from another domain

I am trying to connect to SQL Server 2012 on a separate domain to Visual Studio/ my computer. (It's my personal machine on a workgroup).

I have access to the server and can log in fine with SQL authentication but want to log on via Windows Authentication. When I try I get the following error:

The login is from an untrusted domain and cannot be used with Windows Authentication.

This is on the data connection of Visual Studio- nothing to do with any code.

How do I make the domain trusted (without login via AD on my machine) or get around this issue?

I tried using Control Panel credential manager but with no luck.

Thank You

That is a setting on the domain controller, not on your computer. The domain the SQL Server is in needs to trust the domain you are login in from. As you have a workgroup computer, that domain would be just your computer.

Talk to your domain admin to see if they can make that happen.

我设法通过从与软件相同的文件夹中运行以下命令来解决此问题:

 runas /netonly /user:<Username and Domain> <name of exe>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM