I have a SqlServer 2008 base where all users can connect to it via Windows domain, this works correctly via SQL Management Studio.
I'm doing a C # Application in MVC, and wanted it when the user accessed the site, I could get that login and password from windows and move on to mount my Connection String .
My Connection String looks like this:
conexao = new SqlConnection("Data Source=vc9;Initial Catalog=sgt;Integrated Security=SSPI;Application Name='Controle de Sprint';Pooling=False;User ID=dominio\usuario;Password=senha;");
So it works, but I can not get C # to catch the Windows user of the user who is accessing the site.
How can this be done?