Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

connect to sql via windows authentication over vpn [closed]

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 .

like image 792
pufos Avatar asked Mar 12 '12 17:03

pufos


1 Answers

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.

like image 103
Aaron Bertrand Avatar answered Oct 04 '22 02:10

Aaron Bertrand