Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone have experience using SQLite with XNA?

Or using any other DB with XNA?

share|improve this question
I think you mean SQLite?? Might want to update the spelling (though Google will find it right) so people are aware. – James Apr 15 '11 at 16:17
For sure using SQLite isn't a good choice when it comes to huge amounts of data: e.g. MMOs. – daemonfire300 Apr 15 '11 at 16:39
Now that I think about it, the appropriate answers are 'Yes', 'No but I used this' and 'No' Do we have a specific question to answer here??? – James Apr 15 '11 at 17:46
Just a comment: Most games are better off loading their data all into RAM in which case the file storage format doesn't matter too much. – Zan Lynx Apr 15 '11 at 21:41
-1, because like @James says, there isn't a question here. – Tetrad Apr 15 '11 at 21:49
up vote 7 down vote accepted

SQLight does work with XNA, just don't expect any store procedures or functions. Any flat file will work to store data (XML, JSON etc). I prefer XML, though if I was using lots of data I would switch to SQLite

share|improve this answer

You should have no issues Accessing SQLite from a Windows XNA Game. On Windows, XNA Project is just like any other project and you can do anything that C# can do. On Xbox or WP7 this isn't completely the case; however, there is also a C# version of SQLite written to run on fully managed environment (Xbox, WP7): see the ZMan's post here:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.