pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedText-Varchar Truncation via ODBC
4+ messages / 3 participants
[nested] [flat]
* Text-Varchar Truncation via ODBC
@ 2002-09-26 13:03 JPTrue@aol.com
2002-09-26 13:30 ` Text-Varchar Truncation via ODBC Peter Staudt <Peter.Staudt@Vishay.com>
2002-09-26 23:48 ` Re: Text-Varchar Truncation via ODBC Hiroshi Inoue <Inoue@tpf.co.jp>
0 siblings, 2 replies; 4+ messages in thread
From: JPTrue@aol.com @ 2002-09-26 13:03 UTC (permalink / raw)
To: pgsql-odbc
Hello,
I am using a variety of programs to attach to a PostGreSQL database via ODBC, including MS Access 2000 and MS DTS 7.0.
Any column in my PostGreSQL database with a datatype of TEXT of VARCHAR(n) is limiting/truncating INSERTed or UPDATEd data to ~255 characters.
I have tested and tried all variations of TEXT and VARCHAR(n) in my PostGreSQL database.
In addition, I have tried modifying all settings in the ODBC driver ( I am using version 7.02.00.02).
Any ideas, hints, or solutions would be greatly appreciated.
Thanks,
Jeff
^ permalink raw reply [nested|flat] 4+ messages in thread
* Text-Varchar Truncation via ODBC
2002-09-26 13:03 Text-Varchar Truncation via ODBC JPTrue@aol.com
@ 2002-09-26 13:30 ` Peter Staudt <Peter.Staudt@Vishay.com>
1 sibling, 0 replies; 4+ messages in thread
From: Peter Staudt @ 2002-09-26 13:30 UTC (permalink / raw)
To: pgsql-odbc
Hi Jeff,
>
> Hello,
> I am using a variety of programs to attach to a PostGreSQL
> database via ODBC, including MS Access 2000 and MS DTS 7.0.
>
> Any column in my PostGreSQL database with a datatype of TEXT of
> VARCHAR(n) is limiting/truncating INSERTed or UPDATEd data to
> ~255 characters.
...
Hmmm, maybe this one is not of much use for you,
but I thought the 255 characters are a M$ Access limitation and
you have to use "memo" type fields if you need more than 255.
CU,
Peter
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Text-Varchar Truncation via ODBC
2002-09-26 13:03 Text-Varchar Truncation via ODBC JPTrue@aol.com
@ 2002-09-26 23:48 ` Hiroshi Inoue <Inoue@tpf.co.jp>
1 sibling, 0 replies; 4+ messages in thread
From: Hiroshi Inoue @ 2002-09-26 23:48 UTC (permalink / raw)
To: JPTrue@aol.com; +Cc: pgsql-odbc
JPTrue@aol.com wrote:
>
> Hello,
> I am using a variety of programs to attach to a PostGreSQL
> database via ODBC, including MS Access 2000 and MS DTS 7.0.
>
> Any column in my PostGreSQL database with a datatype of TEXT
> of VARCHAR(n) is limiting/truncating INSERTed or UPDATEd data
> to ~255 characters.
> I have tested and tried all variations of TEXT and VARCHAR(n)
> in my PostGreSQL database.
> In addition, I have tried modifying all settings in the ODBC
> driver ( I am using version 7.02.00.02).
Did you try to turn on *Text As LongVarchar* option ?
regards,
Hiroshi Inoue
http://w2422.nsk.ne.jp/~inoue/
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Text-Varchar Truncation via ODBC
@ 2002-09-27 14:12 JPTrue@aol.com
0 siblings, 0 replies; 4+ messages in thread
From: JPTrue@aol.com @ 2002-09-27 14:12 UTC (permalink / raw)
To: pgsql-odbc
Thank you for the Reply,
Yes, access has the TEXT and MEMO data types.
The TEXT data type in Access is limited to 255 characters.
My problem was trying to map any PostGreSQL datatype to the Access-MEMO datatype. Access maps all variations of PostGreSQL-VARCHAR(n) to Access-TEXT.
I finally found a solution.
1. Make sure to select the 'Text As LongVarchar' option in the PostGreSQL ODBC Driver.
2. The PostGreSQL-TEXT datatype will map to Acess-MEMO datatype (DTS as well).
***(HINT) Using the linked table manager in Access to update modified tables does not work well. If any changes are made to a linked PostGreSQL table, the linked table in Access must be deleted and recreated to update the changes.
Thanks to everyone for your replies, and hopefully this note will help someone in the future.
Jeff
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2002-09-27 14:12 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-09-26 13:03 Text-Varchar Truncation via ODBC JPTrue@aol.com
2002-09-26 13:30 ` Peter Staudt <Peter.Staudt@Vishay.com>
2002-09-26 23:48 ` Hiroshi Inoue <Inoue@tpf.co.jp>
2002-09-27 14:12 Re: Text-Varchar Truncation via ODBC JPTrue@aol.com
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox