Group:  Microsoft Access ยป microsoft.public.access.externaldata
Thread: length of imported text fields issue

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

length of imported text fields issue
vic 13.07.2006 22:16:01
I have some databases being imported to access from csv text files. Even
though I have Access set to have any txt field to a maximum 30 integers, the
imported text fields all come through at the maximum 256 characters, creating
larger than life files. They are big tables (up to 1gb) and if I try and
reduce field sizes once they've been imported then I get insufficient memory
issues etc. Why are my access settings being overridden on import ie
30integers to 256 integers? Can I change this?

--
vic
Re: length of imported text fields issue
"Rick Brandt" <rickbrandt2[ at ]hotmail.com> 13.07.2006 22:36:51
vic wrote:
[Quoted Text]
> I have some databases being imported to access from csv text files.
> Even though I have Access set to have any txt field to a maximum 30
> integers, the imported text fields all come through at the maximum
> 256 characters, creating larger than life files. They are big tables
> (up to 1gb) and if I try and reduce field sizes once they've been
> imported then I get insufficient memory issues etc. Why are my
> access settings being overridden on import ie 30integers to 256
> integers? Can I change this?

Access tables only take up as much room for text fields as the text they
actually contain regardless of the maximum length set so that is not why you
have bloat.

Te default field size only applies to tables you create via the GUI not to those
created with imports.

To have maximum control create the table ahead of time and use the import to
populate it rather than having the import create the table.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com



Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net