When you use the Microsoft Oracle OLE DB Provider (MSDAORA) for Microsoft Data Access Components (MDAC) 2.6 and 2.7 to access an Oracle fixed-length CONSTANT CHAR field, you may find that the length of the string retrieved is far greater than expected. All of the additional characters are spaces.
For example, when you access a CONSTANT CHAR field of fixed length 1, the string retrieved is 32 bytes in length. The string contains the correct first character followed by 31 spaces.
Note that no error is returned when this "padding" occurs.
Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.