views:

31

answers:

1

Hi,

I'm developing an applciation using SQL Compact database in Visual Studio 2008. When I start the application and run the process, the data is being loaded into database for few hours worth of few tens of megabytes. However, when I quite debugging, change something in code (not in DB structure), run the project again, the database is erased.

Does anyone know how to prevent this behavior? I need the data to stay in DB to test on it.

+1  A: 

Did you add the database file to your project? Select it and in the Properties window change its Copy property from Always to If Newer.

Hans Passant
Of course, it is in my database explorer panel.
Skuta
I am not sure where to fiind this Properties window. I can't see any Copy property.
Skuta