Re: Defining Text field sizes in destination Make-Table Query

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Thu, 11 Dec 2008 10:43:00 -0800, JASelep <jaselep@xxxxxxxxxxx> wrote:

when extracting fields from ODBC DB2 tables into access using Make-Table Query

howdoes one define/limit the destination text field size?

Access seems to default to 255 or 50 characters which is problematic on
large numbers of records when the field only needs to be 3 to 10 characters

Keeping blowing 2GB limit because of all the dead space.
I'm unsure of how to trim / exclude / limit during the Maketable query process

You can't.

However, Access does not store trailing blanks. A 255-byte field containing
"XYZ" takes up 3 bytes (if you have Unicode compression on, which is the
default).

You can get a lot more control over your table structure if you avoid
MakeTable queries entirely, and use Append queries into a pre-built table
instead. Are you routinely importing the same kind of data, or is it a
different table every time? Have you been Compacting the database routinely?
That's essential if you are adding and deleting data (whether by deleting
tables or just deleting the data in the tables).
--

John W. Vinson [MVP]
.



Relevant Pages

  • Re: Line too long ???
    ... After copying everuthing in the Notepad, savin the file and renaming it into ..pas, it looked all right, but after a few other adjustments to the same lines consisting mainly in lines camcellations, I got in the same intial situation, So I thoght perhpas the problem was not cutting and pasting, but deleting, since I was having problems even deleting a piece of a line ... "Dr J R Stockton" ha scritto nel messaggio ... "Line too long (more then 1023 characters)" ... John Stockton, Surrey, UK. ...
    (comp.lang.pascal.delphi.misc)
  • Re: Line too long ???
    ... intial situation, So I thoght perhpas the problem was not cutting and ... pasting, but deleting, since I was having problems even deleting a piece ... keyboard/language settings. ... editing and some characters then come out as garbage. ...
    (comp.lang.pascal.delphi.misc)
  • Re: How to convert "word wrap" to hard returns, automatically?
    ... either Mac or Unix format (by deleting all CRs or all LFs), ... The tr utility copies the standard input to the standard output ... with substitution or deletion of selected characters. ...
    (comp.sys.mac.system)
  • Re: meaning of sed expression
    ... so have trouble understanding this simple script: ... to the empty string - deleting it. ... i.e. any humber of characters. ... Since regular expressions are greedy - the expression matches ...
    (comp.unix.shell)