Posted by Anonymous December 11, 2007 - 1:22pm

I found the solution.

- I selected copy database into project environment that make vc# to copy .mdf into my project directory.
- At Solution Explorer I see Books.mdf. In its properties "Copy to Output Directory" --> "Copy always" was selected. That mean every time I run my application, the original database will be copy to my output directory!! Everything I had changed last time I ran will be replaced.
- Solution is change property value from "Copy always" to "Copy if newer"

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
More information about formatting options Captcha Image: you will need to recognize the text in it.
Please type in the letters/numbers that are shown in the image above.