Link to home
Start Free TrialLog in
Avatar of Pit76
Pit76Flag for Belgium

asked on

where should I save my database when I deploy my project

Hi,

I have a C# project which has an Access db. Now for testing I have stored it in my C:\temp folder.
But what is the best place to place the db when I deploy my project? My Documents folder? Or Program Files folder?

Thx!
Avatar of kyleroi
kyleroi
Flag of United States of America image

if you only expect one user to use the program than put it in the users folder

http://www.java2s.com/Tutorial/CSharp/0280__Development/Enumerateallspecialfoldersanddisplaythem.htm

otherwise i guess you could put it in program files... this all depends on security.. if you have active directory users may not be able to save to the c:
ASKER CERTIFIED SOLUTION
Avatar of Paul Thompson
Paul Thompson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Pit76

ASKER

Thx, great and clear explaination!
I can understand and agree with these recommendations.

Grt!
You may want to take a look at %ProgramData% too.
All users on that machine can access this folder.

%AppData% tends to be user specific.

DJ