Quantcast
Channel: Configuration and Deployment
Viewing all articles
Browse latest Browse all 3561

Database Location?

$
0
0

Hi... Newbie here...

I'm using Visual Studio Express Edition 2012 for Web.

When I create an MVC3 Web Application, App_Data is already added and the ConnectionStrings area also added in Web.config which is;

<add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-QICSkillsForce-20121231165110;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-QICSkillsForce-20121231165110.mdf" />

Now, when I run my apps which I have auto populate class, it populate the db but I can't find where the database located... It didn't store in App_Data. Where can i find the DB? How can i make it store in App_Data folder?

Plus.. Can I add SQL Server Database in App_Data and point the connection string to added DB? How will I do that?

I tried creating QICSkillsForce.mdf in the App_Data and the connection strings in Web.config is;

<add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=QICSkillsForce;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\QICSkillsForce.mdf" />


but it won't populate my db... what's wrong?


Viewing all articles
Browse latest Browse all 3561