473,404 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Database corrupt after FTP (on some computers)


I'm a little stumped here, and it might be beyond the scope of this
forum - but any help would be greatly appreciated.

I have a database being used across remote offices with no network, so
I'm using a system of FTP routines and a lock file to allow the users
to do updates and get and put the latest database backend using FTP to
a secure web server.

Sounds a little funky, but the system actually works great - on some
computers - but in two cases, for no appearent reason the database is
corrupted after download.

DB Version: Access 2000
Filesize: backend ~2MB, FE ~4MB
No limit on FTP server re filesize
Transfer done in ASCII mode (Binary corrupts every time on every
PC...)
Webserver is Linux
Practically every PC is differnet Specs, windows SP versions etc
Interestingly, the two it won't work on are both fairly new laptops
I dont think its an ISP thing, because for two computers on the same
internet connection, one works and the other doesnt

Anyone have any clue at all?

Mar 5 '07 #1
3 2497
I would STRONGLY suggest that you consider zipping the files before you
transfer.

FTP does fail quite often, and unless you having something that checks for
errors in the file...you setup is to risky...

I have a WinZip compatible library that you could use. You can find it here:

http://www.members.shaw.ca/AlbertKallal/zip/index.htm
Sounds a little funky, but the system actually works great - on some
computers - but in two cases, for no appearent reason the database is
corrupted after download.
It sounds quite a bit funky, and your problems demonstrate that this is not
a reliable setup.

I suspect that the computers in which this is occurring are actually
correctly doing a ASCII mode. You MUST USE binary transfer
mode here.

Binary mode should not be corrupting every time. Binary means to
transfer the data un-modified. ASCII mode means to convert
char returns..and other things on the fly. So, with ASCII
mode, you doing a text transfer, but you document is MOST
CERTAINLY binary data format. You have to fix this issue
first....

Or, as mentioned, using something that wraps the file in some type of error
checking. I would start with the WinZip idea, and the bonus that your file
sizes will be 2 times, or more smaller. It is news to me that you can
transfer a binary file, or a zip file while in ASCII mode. For transferring
of any type of compressed data (which access 2000 and onward uses), I just
can't imagine that non binary transfers will work. I am more perplexed that
whole thing actually works. I would try transferring a zip file...and if
that works, then grab the above zip examples, as at least that would improve
your reliability.

My fear/concern here is that you doing a ASCII transfer, but in fact data is
being changed, or last VERY frequently...you just don't notice...

I am rather surprised that this works, and you need more robust error
checing for you data, as FTP is not at all that great. And, you need to get
the binary transfers working...

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl*****************@msn.com
Mar 5 '07 #2

I agree with the whole ACSII Vs Binary thing - I was initially using
Binary...
Thanks for the advice the and ZIP dlls. I'll take your advice and look
into this.

On Mar 5, 4:37 pm, "Albert D. Kallal" <PleaseNOOOsPAMmkal...@msn.com>
wrote:
I would STRONGLY suggest that you consider zipping the files before you
transfer.

FTP does fail quite often, and unless you having something that checks for
errors in the file...you setup is to risky...

I have a WinZip compatible library that you could use. You can find it here:

http://www.members.shaw.ca/AlbertKallal/zip/index.htm
Sounds a little funky, but the system actually works great - on some
computers - but in two cases, for no appearent reason the database is
corrupted after download.

It sounds quite a bit funky, and your problems demonstrate that this is not
a reliable setup.

I suspect that the computers in which this is occurring are actually
correctly doing a ASCII mode. You MUST USE binary transfer
mode here.

Binary mode should not be corrupting every time. Binary means to
transfer the data un-modified. ASCII mode means to convert
char returns..and other things on the fly. So, with ASCII
mode, you doing a text transfer, but you document is MOST
CERTAINLY binary data format. You have to fix this issue
first....

Or, as mentioned, using something that wraps the file in some type of error
checking. I would start with the WinZip idea, and the bonus that your file
sizes will be 2 times, or more smaller. It is news to me that you can
transfer a binary file, or a zip file while in ASCII mode. For transferring
of any type of compressed data (which access 2000 and onward uses), I just
can't imagine that non binary transfers will work. I am more perplexed that
whole thing actually works. I would try transferring a zip file...and if
that works, then grab the above zip examples, as at least that would improve
your reliability.

My fear/concern here is that you doing a ASCII transfer, but in fact data is
being changed, or last VERY frequently...you just don't notice...

I am rather surprised that this works, and you need more robust error
checing for you data, as FTP is not at all that great. And, you need to get
the binary transfers working...

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKal...@msn.com

Mar 6 '07 #3

You're a legend - zip dlls and code works a storm - thank you so
much!!!

I've traced my problems to some dodgy ftp coding, I was trying to use
an ftp class using API so that I could trap errors, but it seems the
code is buggy - ASCII Vs Binary connections are a little skewed.

So the solution I'm going to use is to do the ftp work via temporary
batch files and parse the dos output to do my error checking.

In case you are interrested, I'll let you know how I get on

Thanks a million for your help

Bill

Mar 13 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Bungle | last post by:
Hi There, Does anybody know where i might be able to locate a tool/application that can determine whether a Database is corrupt?? Also, can a bad network connection cause a corruption to a...
3
by: \Jane higgs via AccessMonster.com\ | last post by:
I have a database that gives me an error message everytime I get to a certain record. I tried going into the table and deleting that record, but it still errors out. I get the "Microsoft Office...
0
by: alt_iuliu | last post by:
Hello, I am using VB6 application (very old) with an Access 97 database. The database is quite large (close to Access limit of 1G) and is used over the network from multiple location. >From...
17
by: shineofleo | last post by:
Here is the situation: I wrote a VB programm, which stores all the information in a single Access database file using jet engine. It worked well, however one of my customs reported that there was...
6
by: aborys | last post by:
Our access database got corrupted and now we get the message "The Microsoft Jet database engine stopped the process because you and another user are attempting to change the same data at the same...
25
by: James L Bryant | last post by:
At bootup this morning before displaying the Windows logo the following error string is displayed: Database corrupt.PsMain: 568c PsMain: 98bd PsMain: 9b45 PsMain: 49d6b PsMain: 3ca6f PsMain:...
2
by: Slez via AccessMonster.com | last post by:
I have a database that "...detects the fille has been currupted..." and when I save a backup copy to open and go to the tools menu to compact and repair, I get the same message. What can I do to...
0
by: Jack | last post by:
Training Classes for Oracle10g, 9i, 8i Certification training in Oracle10g and 9i: DBA, Developer, Discoverer. training conducted at your location worldwide. Courseware licensing also available....
0
by: Winder | last post by:
Training Classes for Oracle10g, 9i, 8i Certification training in Oracle10g and 9i: DBA, Developer, Discoverer. training conducted at your location worldwide. Courseware licensing also available....
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.