Link to home
Start Free TrialLog in
Avatar of Anthony
AnthonyFlag for United States of America

asked on

Access Text File Export Results in Very Large File size

Hi everyone, this might sound like a weird question, but here goes.

I have a table that I'm exporting from access to a fixed width text file with specifications indicated for column width and start position. The table has about 19000 rows and it has about 166 columns; however only about 40 % of the columns are filled in.

When I go to export the table to the text file, the result is a text file that looks 100% correct, but the file size is over 300 megs!  The same file created by our old system resulted in a file that was about 10 megs. I'm trying to figure out why access would create such a large text file in size?  I've already compacted and repaired the database and had no luck. Does anyone have any suggestions on other things to try?

Thanks in advance.
Avatar of bfuchs
bfuchs
Flag of United States of America image

do you still have copies of the old files, if yes try compare some records and see whats the diff, perhaps just copy a few records so it would be easier to determine.
Avatar of Anthony

ASKER

I did compare the files today.  The only thing I could notice is that the fonts were different, so maybe there has something to do with the encoding coming out of access?
what does the schema.ini file look like?
Fonts?

Don't export to Word (rtf or html) but export to text (.txt).

/gustav
Avatar of Anthony

ASKER

Aik, I will check the schema either today or tomorrow. I don't have access it to this morning because of network maintenance going on.

Gustav, I am exporting it to a txt file. I just noticed that the text itself does look a little different compared to the original files.
.. the text itself does look a little different compared to the original files.
A little? In what way? From 10 MB to 300 MB there must be a huge difference.

And this:
The only thing I could notice is that the fonts were different
For plain text files, fonts are not different. There is and can't be no font specification.

/gustav
Avatar of Anthony

ASKER

Hi Gustav, I believe you are correct about the file size.  Before, the old files had a limitation of only 7 instances of a specific field (dependents of an employee).  I can no capture about 14 dependents which has changes the file length size from 13700353 bytes to 298225270 bytes which would explain the increase size difference...
ASKER CERTIFIED SOLUTION
Avatar of aikimark
aikimark
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Anthony

ASKER

Hi, yes the text file that I export, is a fixed width file with specifications for the column start and the width of the column itself...
Avatar of Anthony

ASKER

When I compared the size of the original files I had with the ones I've created, the new ones are 21 times the length compared to the old ones.  Has anyone ever heard of access adding extra padding to fixed width files?  Something just doesn't seem correct...
Avatar of Anthony

ASKER

The filesize increase was specifically because of the fixed width layout.