If you use attach like below.
You are attaching that database FILE the one on your appdata.
What ever you change on other database of course not being updated there.
it is updated to that file

On Wed, May 27, 2009 at 12: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