944,004 Members | Top Members by Rank

Ad:
Aug 7th, 2007
0

Permision denied error number 70

Expand Post »
Hi All,

I've database application that uses an ADO & Datagrid control. This application has Backup button that should copy the database to another location. When I click on the button it gives me an error Permission denied. When I changed the connection string, record source & refresh the ado then it works but the datagrid shows the new record source data.

Is there any other way to copy the database file?

Shrini
Similar Threads
Reputation Points: 10
Solved Threads: 3
Light Poster
kshrini is offline Offline
45 posts
since Jun 2007
Aug 7th, 2007
0

Re: Permision denied error number 70

Hi,

If u want to make the backup of Access Database, I think u r using "fileCopy".

all the Connections Objects which have opened that database should be Closed . then only u can take back up.
Note : u cannot back up even if the access database is open in either Visdata or MS Office/Access.
just b4 backup close adoConnection.

Regards
Veena
Reputation Points: 84
Solved Threads: 140
Posting Shark
QVeen72 is offline Offline
923 posts
since Nov 2006
Aug 8th, 2007
0

Re: Permision denied error number 70

You need to close the conection before taking backup .
Featured Poster
Reputation Points: 665
Solved Threads: 427
Posting Genius
debasisdas is offline Offline
6,406 posts
since Feb 2007
Aug 9th, 2007
0

Re: Permision denied error number 70

Thanks for reply. I'm taking backup of database using seperate form. On Main form I've ADODC & Datagrid. In datagrid I'm displaying contents. If I close the connection on main form then datagrid gets cleared. It should not get cleared. So I tried to close in Backup form but still I get same error as "ldb" file is there.
Reputation Points: 10
Solved Threads: 3
Light Poster
kshrini is offline Offline
45 posts
since Jun 2007
Aug 9th, 2007
0

Re: Permision denied error number 70

Hi,

For any reason, if the Database is Open or there is an Active Connection, u cannot take the Back-Up.
In real time projects what we do is, Give Back-up Option in Seperate Form. There Close the Connection and take backup and then Restore the Connection.

Regards
Veena
Reputation Points: 84
Solved Threads: 140
Posting Shark
QVeen72 is offline Offline
923 posts
since Nov 2006
Aug 9th, 2007
0

Re: Permision denied error number 70

Hi,

I've done the same, backup option in seperate form. But on main form I've displayed the Datagrid which shows the contents of database and it is displayed continuously. So if I close the connection then grid gets cleared. If I try to close on backup form it does get closed but ldb file (MS record locking information) is there, duw to which I can't copy mdb file.
Reputation Points: 10
Solved Threads: 3
Light Poster
kshrini is offline Offline
45 posts
since Jun 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: InstallShield in Visual Basic
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: how to use generate random numbers





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC