is trimming field size where suitable good practice? (1 Viewer)

tenchy

New member
Local time
Today, 10:07
Joined
Jun 4, 2007
Messages
8
If I have a DB with several tables containing thousands of records, and most of those records only ever need say 8 characters, does anyone know if changing the field size from default 255 chars to 8 chars will actually benefits the the DB?

Potential benefits I'm thinking may occur are reduced filesize and maybe some speed?
 

boblarson

Smeghead
Local time
Today, 02:07
Joined
Jan 12, 2001
Messages
32,059
Access doesn't "pad" the fields like SQL Server, so it really isn't going to matter as long as it's in Access.
 

tenchy

New member
Local time
Today, 10:07
Joined
Jun 4, 2007
Messages
8
thanks Bob
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 04:07
Joined
Feb 28, 2001
Messages
27,453
The only time this MIGHT repeat MIGHT make a difference is if you export the data to another database format that DOES pad text fields.

Case in point: Export to ORACLE and forget that TEXT exports as CHAR - when you really wanted VARCHAR.

Otherwise, Bob's spot-on.
 

Users who are viewing this thread

Top Bottom