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

am developing a Windows Store 8.1 app.

I want to save some data locally in my app, so am using SQLite i created a DB and added few tables in that and i have added some data to that from Code.

Which one is the best option from the following?

1) Creating the DB from the code for the first time opening the app

2) Attaching the DB file with predefined structure in the app with in the solution folder.

Please suggest me the best solution for this.
Posted

You should always create your database from source code, so you can control updates and in general if the database was lost you would need to do so anyway.
 
Share this answer
 
Quote:
SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.




I would prefer creating the DB from the code for the first time.
 
Share this answer
 
Thank you every one for your replies
 
Share this answer
 
That would depend on whether the database should be prepopulated or not.
Sure you can do that with a script, but depending on the amount of data that might turn out to be unpractical.
 
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