Answer the question
In order to leave comments, you need to log in
MS SQL connection string example for ASP .Net MVC?
Good day!
If you don't mind, please show an example of MS SQL DB connection string for ASP .Net MVC. I'm interested in the connection string already on the hosting, for example "reg.ru"
Answer the question
In order to leave comments, you need to log in
Suddenly, someone needs to configure the connection string to Reg.ru, the Web.Release.config file is not picked up by the server and you need to change the root Web.config.
According to their manual , when using EntityFramework, you need to use the line configured on the EntityClient:
<add name="DefaultConnection"
connectionString="metadata=res://*/;provider=System.Data.SqlClient;
provider connection string="
Data Source=localhost;
Initial Catalog=<db name>;
integrated security=False;
App=EntityFramework;
User ID=<username>;
Password=<password>""
providerName="System.Data.EntityClient" />
<add name="DB_nameProject" providerName="System.Data.SqlClient"
connectionString="Data Source=localhost;
Initial Catalog=u04732352_DB_nameOnServer;
Integrated Security=false;
User Id=u04732352_root;
Password=pass1234;"/>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question