I'm using database in server in my asp.net mvc web application. Now, i want to use the database in my local db temporarily. What changes do i have to do?
-
Change your connection string?Chris Pickford– Chris Pickford2017-04-05 10:49:40 +00:00Commented Apr 5, 2017 at 10:49
-
you should post a snippet of your codeBRAHIM Kamel– BRAHIM Kamel2017-04-05 10:52:29 +00:00Commented Apr 5, 2017 at 10:52
-
Change your connection string in the web.configManojkanth– Manojkanth2017-04-05 11:00:28 +00:00Commented Apr 5, 2017 at 11:00
Add a comment
|
2 Answers
Change your connection string in the web.config file
for your reference posting sample local connection string below
<add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-ProfileSearch-20170215151903;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-ProfileSearch-20170215151903.mdf" providerName="System.Data.SqlClient"/>
1 Comment
Naveen K N
Welcome Coderstech. Happy coding!