glenn

glenn

  • NA
  • 1
  • 0

SQL Mobile and C#

Feb 8 2008 1:41 PM
I dont think I completely understand what's going on with the SQL mobile database I'm using in my C# application. For some reason, every once in a while the database will just clear itself out. Now, when I started the app, and created the database, Visual Studio asked me if  I wanted to include the database in my project. I answered yes, and then I end up with two copies of the database. One in the directory where I created it and one under the debug folder of my application. I assume that while I am testing the application in debug mode that anything I save to the database goes to the one in the debug folder. What's wierd is that every once in a while I'll start the application in Visual Studio and all of the data in the database will be gone. I thought it was happening when I would do a "rebuild" on the app, but that doesn't seem to always be the case. Can anyone straighten this out for me? Thanks.