Permision denied error number 70

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jun 2007
Posts: 44
Reputation: kshrini is an unknown quantity at this point 
Solved Threads: 3
kshrini kshrini is offline Offline
Light Poster

Permision denied error number 70

 
0
  #1
Aug 7th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: Permision denied error number 70

 
0
  #2
Aug 7th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,144
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 132
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

Re: Permision denied error number 70

 
0
  #3
Aug 8th, 2007
You need to close the conection before taking backup .
Share your Knowledge.
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 44
Reputation: kshrini is an unknown quantity at this point 
Solved Threads: 3
kshrini kshrini is offline Offline
Light Poster

Re: Permision denied error number 70

 
0
  #4
Aug 9th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2006
Posts: 848
Reputation: QVeen72 is on a distinguished road 
Solved Threads: 120
QVeen72's Avatar
QVeen72 QVeen72 is offline Offline
Practically a Posting Shark

Re: Permision denied error number 70

 
0
  #5
Aug 9th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 44
Reputation: kshrini is an unknown quantity at this point 
Solved Threads: 3
kshrini kshrini is offline Offline
Light Poster

Re: Permision denied error number 70

 
0
  #6
Aug 9th, 2007
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum


Views: 3293 | Replies: 5
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC