SAVING PROBLEM
Now i know that my database is really saving
but it is being saved on the copy database in bin folder of the
project folder. But i want it to be saved on databse of the project
folder. Everytime I execute the program, the database on the project
folder copies itself to the bin folder which overwrites the updated
database.
I agree withAntoine (Software Design Engineer, Visual Studio Data
Design-time) that SSE database has 2 copies
(http://blogs.msdn.com/smartclientdata/archive/2005/08/26/456886.aspx).
He or she suggested to set the property of the databse to "Copy
Never", on my SSE it's "Do not
copy". i cant find "Copy Never", i supposed its
the equivalent. When i executed the program i got an error"An attempt to attach an auto-named database for file
C:\[app_path]\addressbook.mdf failed. A database with the same name
exists, or specified file cannot be opened, or it is located on UNC
share".
I tried her/his 2nd suggestion, leave the data file outside the project and create a connection to it in Database Explorer, but I got the same error message.
Someone from other website suggested to delete the SQLExpress folder in"c:\Documents and Settings\[user name]\Local Settings\Application Data\Microsoft\Microsoft SQL Server Data\SQLEXPRESS" but this didnt solve the issue.
PLS
HELP. Thanks