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
91 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 81

Expert Comment

by:David Johnson, CD, MVP
ID: 41734220
if in appdata then your application has to attach and detach the database
0
 
LVL 10

Accepted Solution

by:
Prakash Samariya earned 500 total points
ID: 41734284
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
ID: 41735079
Thank you, Prakash

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

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Load XML element 3 43
Can Selenium do Load Testing? 2 61
C#:  Need to switch between timer loop and token driven loop 2 32
Adding Rows to Grid 4 33
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
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…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

751 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