473,487 Members | 2,680 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Backup Utility

1 New Member
Hello frenzz m new to forums pls forgive if i offend ne1 in ne manner

I have created a backup utility in VB.NET for MS Access backend i am using the copy method to copy the updated db to new location

System.IO.File.Copy(DBFile, BackupFile, True)

but the problem is it gets copied only if the file exists at the "BackupFile" location

to overcome this problem i have created file at the location i want the backup

System.IO.File.Create( BackupFile)


but now when code reaches the copying procedure it returns me an error saying

"An another process is trying acess the file "

Pls help me frenz ......
Sep 18 '08 #1
1 1189
cloud255
427 Recognized Expert Contributor
Hi there,

Please use fill english words when posting, it makes reading your posts a lot easier.

As for your problem, this sounds like a deadlock, another process is busy using the file when you try to access it. make sure that the backup has completed before trying to read the file.

Also ensure that any other stream readers/writers which access that file are closed.
Sep 18 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
1613
by: John Smith | last post by:
Hi I am currently reviewing our backup procedures. Part of the issue has been finding the right fit. There are obviously backup products that provide mysql agents but unfortunately can not for...
2
5949
by: Chirath Fernando | last post by:
Hi We are running SQL 2000 Enterprice version with SP3a on a Dell Poweedge 5600 server running Advance Server. It has Tape drive PowerVault 110T (DLT VS80 Tape Drive) & uses DLT tapeIV tapes. A...
9
3258
by: Stanley Sinclair | last post by:
I just brought a new small server online. It has two disks in RAID1 (mirrored) for the operating system and logs and DB2 DBMS. DB2 data on a separate RAID 5EE array on four disks. (IBM ServeRAID...
6
5169
by: Charles Morrall | last post by:
I have no experience with DB2 as such, but I've been tasked with configuring backup of a server running DB2 v8 on Windows Server 2003. I do have some experience with backups in general though. The...
1
1469
by: pukuri | last post by:
Hi, now we have some troubles with restoring a db with the vendor apis of the backup and restore utility. We upgraded from db2 version 7 to version 8.2 (windows 2000 environment). We recompiled...
3
4323
by: dcruncher4 | last post by:
It is possible that we may be asked to restore a production tape, say 3 yrs later. We would prefer redirect restore for that. I am documenting a process to do a redirect restore. We take...
9
4450
by: george.zhang | last post by:
Hi, Friends, I have oneconcern on my stragety on db2 backup. My db2 databse backup imdage with size 100G. On the server, it has two directories which I can use to backup: directory a with 30 G...
1
4465
by: ARC | last post by:
Does anyone know if you can add your own items to the round office button in the top left? I'm guessing the answer is no, and that you can only hide the default items, but it would be great if you...
3
2555
dlite922
by: dlite922 | last post by:
Problem: I want a backup utility for my CentOS 5 HP DL320 G2 server with Software Raid, Gnome installed but I do not want to install every backup utility there is to find the one i'm looking for:...
0
7106
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7181
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6846
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7349
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5442
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
600
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
267
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.