0

I am using entities with VisualStudio 2010. When I debug my ASP.NET application, it is using the current user identity to connect to the database, and not what is specified in my connection string :

 <connectionStrings>
 <add name="RFV2_Entities" connectionString="metadata=res://*/Model.RFDB.csdl|res://*/Model.RFDB.ssdl|res://*/Model.RFDB.msl;provider=System.Data.SqlClient;provider
 connection string=&quot;data source=xxx\xxx;initial
 catalog=xxx;User Id=xxx;Password=yyy;integrated
 security=True;multipleactiveresultsets=True;App=EntityFramework&quot;"
 providerName="System.Data.EntityClient" /> </connectionStrings>

Do I have to specify something to make my application use the connection string identity ?

asked Dec 4, 2012 at 9:07

1 Answer 1

2

Specify either "Integrated Security=True" OR "User Id" and "Password", not both.

See this list of keywords, which specifies for "Password":

The password for the SQL Server account logging on. Not used with (the strongly recommended) 'Integrated Security=true' option.

(my emphasis)

answered Dec 4, 2012 at 9:11

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.