6

I have to connect remotely to MSSQL database from my local machine, using remote server windows Authentication.

McNets
  • 23,749
  • 10
  • 48
  • 88

2 Answers2

10

Assuming you are in a different domain, you can launch SSMS using the remote Windows commercials. Open a command prompt in the folder where ssms.exe lives, and run:

runas /netonly /user:remotedomain\remoteuser ssms.exe

You will be prompted for your password. SSMS will be using remote Windows credentials even though several UI elements will look like you're using the local ones.

This technique should work for launching other executables, like sqlcmd or powershell, but I haven't tested those. I know it works for SentryOne and Plan Explorer.

You can also use Credential Manager, which I wrote about (in addition to more details about runas) here:

Aaron Bertrand
  • 180,303
  • 28
  • 400
  • 614
0

There are few different methods.

Assuming: you are logged into windows, on the same network, and the same domain:

You can connect using the server name or you can use the ip address of the server.

From sql server management studio: click connect > data engine. Enter the server name or ipaddress. Make sure windows authentication is selected and click login.

Provided that you have been granted login privileges on the sql server it should allow you to connect.

This microsoft guide has instructions including screen shots

There are some variations on the theme above such as if the data is a named instance rather than using the default name. But generally if you have been setup to use windows authentication you just need to know the server.

If you are using other products and connecting via ODBC you may need to configure a connection first.

Sir Swears-a-lot
  • 3,233
  • 2
  • 28
  • 48