Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Asp.NET MVC: How to configure SQL Server to work with Windows authentication?

$
0
0

Hello,

I developed a website in Asp.NET MVC that uses a SQL connection string but Windows authentication is not taken into account.

My website is published on an IIS7 server and the SQL Server is on other server.

Here is the connection string I am currently using:

<connectionStrings><add name="Context" connectionString="data source=ServerName;initial catalog=DbName;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" /></connectionStrings>

When I insert data into a table, SQL server uses the IIS server session or I would like to use the user's session which inserts data from my site.

Can you help me please?


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>