Deep_p_patel


what to do with copy of debug folder for the database file

is it important for Database point of view

Dabase copy...

1. in local folder. (path)

2. debug folder's copy

3. main project's folder.

what is the different use of this copyies




Re: use of Debug folder's Database ?????

Peter Ritchie


What do you mean by "database file" MDB SDF PDB




Re: use of Debug folder's Database ?????

Deep_p_patel

Sorry for the one mistake that i forgive the give extension.

Database File having extension .mdb

plz tell me the answer immediately if possible.

Thanks.







Re: use of Debug folder's Database ?????

Peter Ritchie

Deep_p_patel wrote:

Sorry for the one mistake that i forgive the give extension.

Database File having extension .mdb

plz tell me the answer immediately if possible.

Thanks.

I'm not sure I follow what you're asking... but, you usually add the MDB file to the project and mark it as "content". Content files will automatically be copied to the appropriate bin folder (Debug/Release/etc.). You can then access the file within the same directory as the application. Otherwise you have to use a fixed path and put the MDB file somewhere specific.

Let me know if I've misunderstood you and did not answer your question.




Re: use of Debug folder's Database ?????

Deep_p_patel

Peter, then why there is difference to give connection to local copy database(.mdb) and debug copy database(.mdb).

My real problem is :

i have used DataBinding Method through DATASET DESIGNER (FROM MSDN LINK: ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.VisualStudio.v80.en/dv_raddata/html/12360f54-db6c-45d2-a91f-fee43214b555.htm)

but update is not updating to local copy database so my toutor has suggest me do this step. And it is work . I want to know the

real result behind that.

1. i have connect database(.mdb) through local copy .

2. then i have run it. so i have copy of Database in the Debug folder.

3. now i have modify the connection of Database to the Debug folder.

4. then set properties of Database: Copy to output Directory is set to Copy if newer

plz tell me what is the real result behind that.

peter i am waiting for you.






Re: use of Debug folder's Database ?????

Peter Ritchie

The problem with putting the MDB as content is that it is copied to the bin directory on every build. If you modify the MDB in the application those modifications will be overwritten by the next build (the copy).