Hi expert,
I am now doing a test using my home PC cos I am so used to doing things via entity framework I really forgot how to write the connection string inside my web.config.
My database name is test.
And here's how I do it inside my web.config:
-
"DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\aspnet-WebApplication9-20170128051949.mdf;Initial Catalog=aspnet-WebApplication9-20170128051949;Integrated Security=True" - providerName="System.Data.SqlClient" />
-
"ConnTest" connectionString="Data Source=localhost;Initial Catalog=test;Integrated Security=True;" providerName="System.Data.SqlClient" /> -
Tks.
Amit KumarPosted Jan 30, 2017, 12:12 AM
Nigel FernandesPosted Jan 29, 2017, 10:32 PM