I'm am making a model first website using MVC4 on IIS7.
Currently my connection string looks like this:
<add name="VaultEntities"
connectionString="metadata=res://*/Models.VaultDB.csdl|res://*/Models.VaultDB.ssdl|res://*/Models.VaultDB.msl;provider=System.Data.SqlClient;
provider connection string="
data source=sqlserver\instance;
initial catalog=vault;
integrated security=True;
multipleactiveresultsets=True;
App=EntityFramework""
providerName="System.Data.EntityClient" />
The connection was auto generated by Visual Studio 2011 when I added the database through the Model First approach. The query works perfectly locally on my development machine. But it dosen't work on the IIS server.
My guess is that this is because my user account on my development machine has access to the SQL server and when IIS tries to access the SQL server its user account gets denied.
In a perfect world I would add a user on the SQL server and use
User Id=myUsername;Password=myPassword;
in my connection string, unfortunately I don't have that option.
Without going into details the dba's are...difficult...to work with.
So is there any way to use my AD account in the connection string to login to the SQL server... Or can I make IIS identify itself as me?