Is there any way I can connect to a remote SQL server with Windows Authentication over VPN?
I can connect to the VPN server in Windows 7 using Domain Credentials like \DOMAIN\user
but I want to be able to connect to the SQL server with the Domain Credentials because I don't have the sa
account .
Try creating a shortcut with:
runas /noprofile /netonly /user:domain\username ssms.exe
You may have to hard-code the path to ssms.exe. On modern versions, that's:
"C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE\Ssms.exe"
In a few locations it will look in SSMS like you are using your local credentials, but you should be able to verify on the remote server that your credentials are being passed, e.g.
SELECT SUSER_SNAME();
This of course depends on your requests being correctly routed to the destination SQL Server.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With