Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends,
I am creating a C# desktop application that will be run on differnet system any where. SO my problem is that how will i place the database for every user locally. the database
have many store procedures and tables.

Please guide me.

Thanks
Posted
Updated 23-Sep-11 2:32am
v2

you place the database on a central server..


As Simple.v says you'll need to do create the int the installer of your program. But if your users do not have a database installed on your system you'll also have to install that one, either by telling the user they have to install it or installing a it yourself programmaticly, if your database comes in a version and with a license that allows it.
 
Share this answer
 
v2
Comments
attiq_khan 23-Sep-11 8:00am    
No , I want to place database to every where locally,
Simon Bang Terkildsen 23-Sep-11 8:08am    
Then why ask this question? if you're not asking "where will i place the database" then your question is not very clear.

Now you say you want the database on the client system, ok, but whats the question then? I don't get it.
attiq_khan 23-Sep-11 8:13am    
My Question is that how to place database on local system of every user. e.g when user use my application he have its now database.
Reiss 23-Sep-11 8:25am    
Can you edit you original question using the Improve Question widget please
In windows application you need to take project installer class.
In that class you need to write the code for creation of database in local system while installing.
 
Share this answer
 
Comments
Reiss 23-Sep-11 8:24am    
Not sure why you have been down voted so much - this is pretty much what needs to be done - have +4 from me as just a bit light on the details
Simon Bang Terkildsen 23-Sep-11 8:38am    
4 from me too, I want to add that the actual database system might not even be install so the OP would have to do so in the installer aswell or tell the user to do so.
the best solution to this would be to use SQlite, it is used alot for exactly the purpose your looking for. Also the files it produce's are very small and therefore easily downloaded quickly
 
Share this answer
 

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