Solved

Could you explain in what aspects adding the database inside App_Data folder is a better aproach that maintain it under SQL Manager Studio ?

Posted on 2016-07-28
3
60 Views
1 Endorsement
Last Modified: 2016-07-29
Hi Experts

Could you explain in what aspects adding the database inside App_Data folder is a better aproach that maintain it under SQL Manager Studio ?
Accordingly with my researches the database must be detatched from SQL Manager Studio to be added to the solution, isn't it?

If the database is added to App_Data folder an EDMX file must be created ?  

Thanks in advance
1
Comment
Question by:Eduardo Fuerte
3 Comments
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
Comment Utility
if in appdata then your application has to attach and detach the database
0
 
LVL 8

Accepted Solution

by:
Prakash Samariya earned 500 total points
Comment Utility
Could you explain in what aspects adding the database inside App_Data folder is a better aproach that maintain it under SQL Manager Studio ?
  • The App_Data folder has permissions set on it that will allow the Web page to read and write data to the database file. The folder also supports special syntax to enable using the DataDirectory relative path in connection strings.
  • It works with SQL Server Express (however it has some limitation), SQL Express is free, no costing for database.
  • App_Data folder is restricted folder by IIS, so user won't be able to get things from it, so it is safe.
  • You must need to open and close connection after using it in code; or you can use connection pooling to reduce live connections capacity.
  • It is not good if you are creating giant application which contains millions of data and have huge active connections!

If the database is added to App_Data folder an EDMX file must be created ?  
  • EDMX (Entity Data Model in XML format) is Entity Framework container, to get the complete database information easily to the developer. So if you would to access database easily, EF will allows you to do that!

Hope this will clear your doubts!
0
 

Author Closing Comment

by:Eduardo Fuerte
Comment Utility
Thank you, Prakash

It's clearer.
I'm going to deep in this subject and then rerturn with new questions.
1

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now