简体   繁体   中英

connect to remote sql server with different windows credentials

Is there a way to connect to a remote sql server using management studio with windows credentials other than the current login credentials?

Right now i remote desktop into the sql server machine and login with the windows credentials that I want to connect with.

Thanks.

Right click the application and choose "Run as different user".

If you are on Vista or Win7, you may need to look at ShellRunAs to create the menu option in your windows shell.

Another alternative in Windows 7 is to use command prompt running as alternative user

runas /user:domain\username CMD

this will start command shell that you can use to launch SSMS application. This approach is also helpful because as long as that instance of "command prompt" is running, you can start and test different applications as they function under that user without having to retype the credentials

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