Tip: How to connect to a database with different credentials in SQL Server Management Studio
filed in Tips on Jan.06, 2012
If you are logged into your machine with a username that doesn’t have access to a certain SQL Server database you can launch SQL Server Management Studio with different credentials. This allows you to use Windows Authentication with a different username when connecting to the database server.
| runas /user:DOMAIN\USERNAME “C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe” |



Leave a Reply
You must be logged in to post a comment.