Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f69BZla14333 for ; Mon, 9 Jul 2001 07:35:47 -0400 (EDT) (envelope-from markMLl.pgsql-interfaces@telemetry.co.uk) Received: from kdgmtbu.demon.co.uk ([194.222.45.178] helo=pye-srv-02.telemetry.co.uk) by anchor-post-31.mail.demon.net with esmtp (Exim 2.12 #1) id 15JZKI-0002T9-0V for pgsql-interfaces@PostgreSQL.org; Mon, 9 Jul 2001 12:35:42 +0100 Received: (from daemon@localhost) by pye-srv-02.telemetry.co.uk (8.9.1/8.9.1) id LAA31573; Mon, 9 Jul 2001 11:35:06 GMT From: markMLl.pgsql-interfaces@telemetry.co.uk Subject: Re: Getting info on "Max LongVarChar" under ODBC Date: Mon, 09 Jul 2001 11:35:09 +0000 Organization: KDG Telemetry Message-ID: <3B4996ED.363BBEE4@telemetry.co.uk> References: <3B4845AF.D933DD72@telemetry.co.uk> <3B48F43E.45A63C9B@tpf.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: pgsql-interfaces@PostgreSQL.org X-Archive-Number: 200107/39 X-Sequence-Number: 1792 Hiroshi Inoue wrote: > You seem to be able to call SQLGetTypeInfo() though > I'm not sure. Many thanks, I obviously need to work out on ODBC programming :-) At present I'm doing a temporary job by querying the parameter from the registry- but that will obviously fail if I need to look at an alternative database. However, I've now found that even if I change the Max LongVarChar parameter from its default 8190 to (say) 16382 an attempt to save more than 8K text still gets truncated. I can work around this for the time being but would appreciate it if anybody could tell me whether there are still any outstatding issues. Hope this isn't an FAQ but I've not found it yet. Running 7.1.2, I've got a table which amongst other things has a field declared as TEXT into which I'm saving a script for interpretation on the client system. On the ODBC driver settings I've got "Unknown Sizes" as "Longest", "Text as LongVarChar" enabled, and "Max LongVarChar" set to 16382. I've rebooted after changing the parameters in case they were only read when the driver was loaded. Client OS is NTW4SP3, ODBC driver Insight 7.01.0005. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]