Prasad Bhagat

Prasad Bhagat

  • NA
  • 516
  • 236.4k

which connection string i want to use?

Oct 30 2014 5:44 AM
Dear all,
 
 
i have developed a website using asp.net sql express 2008 r2  with entity freme work
 
now i have problem  in web.config i have a connection string and one more in app.comfig
 
please tell which connection string i want to use 
 
my connection string like bellow 
 
<add name="GatewayEntities" connectionString="server=.\sqlexpress;database=Gateway_Two;Integrated Security=True;" /> 
 
<add name="GatewayEntities" connectionString="metadata=res://*/Gatewaydb.csdl|res://*/Gatewaydb.ssdl|res://*/Gatewaydb.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=.\sqlexpress;initial catalog=Gateway_Two;user id=sa;password=123;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient"/> 
 
above both which connection string i want to use please suggest me 

Answers (4)