Mister Magooon Database Administrators Stack Exchange • Recommends
On “Connect to SQL Server with Windows Authentication in a different domain”
There is another way, which I now use in preference to the runas /netonly method.
You can add the credentials to your profile in Windows using the Credential Manager found in the Windows control panel.
Open Credential Manager
Click "Add A Windows Credential"
Populate the "internet or network address" field with the name and port number of the SQL instance you wish to store credentials for.
Example: UniServer:1433 (1433 is the default port, you may need a different port, especially if you are connecting to a named instance)
Populate the "User Name" (don't forget to include the domain e.g. MYDOMAIN\MYUSER )
Populate the "Password"
Click OK
If you have the server name, port an…