I bet you have your access database set to Copy Local under the
compile settings which will cause the database to be overwritten every
time you run the debug.

On May 26, 11:49 am, Sam1979 <[email protected]> wrote:
> i am working on a application. i am using sqlserver database file.
> while giving database path. i have given the absolute path. in case i
> move my application to other PC i need to change the database path
> again. to overcome this problem. i have choose relative path for
> databse like this.
>
> attachDBfile=|DataDirectory|/database.mdf.
>
> now problem arise that there is a database in the debug folder.
> whatever i'm updating is updated in database situated in debug folder.
> if i run the application. again the updates were gone and i am getting
> a fresh copy of database.
>
> could any one help me out from this situation.???
>
> Sam

Reply via email to