Forums - C# Corner

Forum guidelines
Abdalla Elawad

Abdalla Elawad

  • 1.1k
  • 341
  • 13.8k

How to deploy application use asp with 2 c ConnectionString

Jul 23 2017 7:34 AM
Hello Developers 
 
I have 2 names in my application in web.onfig like below :
 
<connectionStrings>
<add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" />
<add name="Cash_PlanConn" connectionString="Data Source=.;Initial Catalog=Cash_Plan;Integrated Security=True" providerName="System.Data.SqlClient" />
<add name="Cash_PlanConne" connectionString="Data Source=.;Initial Catalog=Cash_Plan;Integrated Security=True" providerName="System.Data.SqlClient" />
</connectionStrings>
 
the question now can i deployment to server by 2 connection above , these names work with same database ?
 
thanks 

Answers (2)