?
2011-12-08 15:42:19 UTC
I'm writing a program in C# to connect to a database on a remote server. The server uses Windows Authentication.
At the moment to connect to the server in Sql Management Studios I use 'runas.exe'.
Something to the effect of:
runas /netonly /user:DIFFERENT_DOMAIN\SAME_USERNAME "C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Ssms.exe"
My question is, in the program I'm making in C#. How can I get my program to connect to the same database without using runas.exe + arguments?