473,385 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Folder for database

Due to cost constraints I have decided to use an Access database from my
ASP.net project.
I will use an OleDBConncetion.
I am using VisualStudio.net 2003.
While I work on this project on my development computer, where should I
place the Access database ?
Should I place it in the appropriate VisualStudioProjects folder or should I
place it in the appropriate folder in C:/inetpub/wwwroot , or somewhere else
?
Thanks in advance for your help.
Jim
Nov 19 '05 #1
6 907

1) Is security an issue? If so, I suggest storing the database in a
different folder where IIS and it's delegates have no rights. Allow access
only through the application.
2) Will other applications need to access this database? If so, a central
location, not specific to any of the accessing applications is the right
choice.
3) If the first two answers are no, then it might be acceptable to place
the database in the project folder.

Regardless of the location, you should create dynamic connection strings so
you can easily move the database if and when necessary.

Good luck,
Curt
"Jim McGivney" <mc****@no-spam.sbcglobal.net> wrote in message
news:e7****************@TK2MSFTNGP09.phx.gbl...
Due to cost constraints I have decided to use an Access database from my
ASP.net project.
I will use an OleDBConncetion.
I am using VisualStudio.net 2003.
While I work on this project on my development computer, where should I
place the Access database ?
Should I place it in the appropriate VisualStudioProjects folder or should
I place it in the appropriate folder in C:/inetpub/wwwroot , or somewhere
else ?
Thanks in advance for your help.
Jim

Nov 19 '05 #2
Keep in a folder which is not mapped to IIS... So do not keep it in
wwwroot.

Shivprasad Koirala
C# , VB.NET , SQL SERVER , ASP.NET Interview Questions
http://www.geocities.com/dotnetinterviews/

Nov 19 '05 #3
Sorry just forgot something why do you try MSDE better than
access......Just a suggestion
Shivprasad Koirala
C# , VB.NET , SQL SERVER , ASP.NET Interview Questions
http://www.geocities.com/dotnetinterviews/

Nov 19 '05 #4

Use MSDE - its a free version of SQL Server

completely binary compatible - you can even install the client tools

from SQL Server and they work with MSDE perfectly

Nov 19 '05 #5
You should definitely place it in a directory somewhere else so that the
visitor can't download the database.
If a user tries www.yoursite.com/db/project.mdb after guessing (or hacking)
he will get the access database just like any other file.

If you develop with the connection string in an Application variable, like
Application("connStr"), you can easily change the location of the database
or underlying product (migrating from access to sql server isn't difficult).

If you use access you will find some situations where it doesn't scale:
- When 5-10 people are concurrently doing write activities to the db
- In my experience the access file gets corrupt every few months if it's
under stress

Access is a nice environment to develop in. If you need robust power and
already do know databases its better to work with the free products MSDE
or SQL Express.
The former missed a good graphical interface but that's solved now with SQL
Express.

HTH

Cheers,
Tom Pester
Nov 19 '05 #6
My hosp doesn't charge an additional fee for an Access Database, while it's
$9.95/Month for SQL server, necessary to use SQL Database even with MSDE.
Nov 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: R Reyes | last post by:
what are the pros/cons of uploading a file into a database (like access, sql server, oracle) vs. uploading a file into a folder (and only storing its path in a database table) ? i've never had...
7
by: Tom | last post by:
Can anyone give me any advice on how to secure a folder on a network server so that documents in the folder can only be opened through an Access database or by the database admin. I need to store...
0
by: Lars Netzel | last post by:
I'm creating a setup project for my application so that users will have a proper installation. In the installation I need to copy a database over to the clients D:\ partition and create a folder...
2
by: John | last post by:
Hi, What is best folder to put database (location of database)? This is because when administrator restricts user rights to read (read and execute), and doesn't give permissions to write in C:...
0
by: hortoristic | last post by:
We currently have a solution up and working on VS 2005 and bound to source control VSS 6. I want to now add our DATABASE folder from VSS to our existing solution. My first approach has been...
8
by: Paw | last post by:
Greetings. I use asp. what I need is is when a visitor comes to the site, I need it to check the host name. if "www.hometowndigest.com" is the host, then check a folder named "something" and if...
5
by: CharlesA | last post by:
hi folks I'm working on reverse engineering TheBeerHouse by Marco Bellinaso which appears to have 100% unanimous approval on Amazon. I got the book and downloaded the code and I opened the...
2
by: conics | last post by:
is it possible to move a folder from 1 directory to another this is the situation, i created a database file and then the database depends on the folder which is of course has the same name as...
9
by: Keith G Hicks | last post by:
I'm having a lot of trouble with "file in use" errors in my "folder watcher" project. Starting and stopping the watcher and reading my XML file work fine. Once the watcher is started, I'm reading...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.