max length of a password TDatabase can take

Hi to all,

    I just wonder if anybody knows how long a password the TDatabase can
take is.  I tried 40 character long but it complained( it said "userid
and password are invalid". I tried 36 characters and it worked ). I use
Sybase Anywhere SQL which takes password up to 128 character long( yes,
ISQL takes it fine when logging in it with the password 40 character
long). Any help would be appreciated!

  werner