Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I have made a small WPF application that contains a small database (5 tables a couple of 000's bits of data), currently my plan is to deploy the db with the application on each computer it get's installed on. I can't think of a better way to do this as each user will have access to change the database as they see fit. I don't want one person's data messing up another person's. Is there a better way of doing this or is this the only way?

Dan
Posted
Comments
Oshtri Deka 30-Aug-11 7:38am    
What kind of DBMS do you intend to use?

Depending on the database system you are planning to use, it may be the best way.
If you use MySQL or MsSQL, then no - bad idea.
If you use SqLite or SqlCE then yes - good idea. I don't have experience with SqLite, but SqlCE is a stand alone, cut down version of MsSQL which is intended for single user applications, and requires no installation other than that which is needed for .NET anyway.
 
Share this answer
 
Comments
Oshtri Deka 30-Aug-11 7:37am    
SQLite is great!
DanHodgson88 30-Aug-11 7:50am    
thanks for that mate will have a look :)
DanHodgson88 30-Aug-11 7:58am    
Totally new question, how difficult is it to implement SQLite or SqlCE into the project I have already created - I have been using SQL server 2008. I am new to c#,WPF and using SQL servers etc, so I am learning as I go along. Any help is appreciated greatly!
You can script the the database to a sql file, and then have the installer (or the user) shellexecute the sql file. Of course, SQL Server must be installed on the system for that to work.
 
Share this answer
 
Comments
DanHodgson88 30-Aug-11 7:50am    
Thanks for that John

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900