X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 05C13D1B4D2 for ; Mon, 2 Feb 2004 17:06:31 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 89163-04 for ; Mon, 2 Feb 2004 13:06:28 -0400 (AST) Received: from ecintweb.eldocomp.com (smtp.eldocomp.com [205.159.99.8]) by svr1.postgresql.org (Postfix) with ESMTP id 5C9DFD1B45B for ; Mon, 2 Feb 2004 13:06:26 -0400 (AST) Received: by ecintweb.eldocomp.com with XWall v3.28l ; Mon, 2 Feb 2004 10:06:20 -0700 From: Andrew Ayers To: Jan Novak Cc: "pgsql-odbc@postgresql.org" Subject: Re: using pgsql-odbc with ASP and ADO Date: Mon, 2 Feb 2004 10:06:19 -0700 X-Assembled-By: XWall v3.28l Message-ID: <401E838B.8090809@eldocomp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/5 X-Sequence-Number: 3758 Jan Novak wrote: > Hi, > i'm using pgsql-odbc driver for connection to my postgres sql server and= =20 > everything works fine. > But today i made some application with text areas with large content=20 > (>32kB) and i'm in trouble .... >=20=20 > If I just fetch data from database > set objRS =3D Connection.execute "SELECT * FROM ""table"" where id=3D= 23" > and use them : response.write objRS("largeConent") > i get displayed only something like 8kB of data. >=20=20 > When i tried using=20 > objRS("fieldName").getChunk(objRS("fieldName").actualSize) i got an=20 > error message : *ADODB.Field error '800a0c93', Operation is not allowed= =20 > in this context.* > .actualSize contains correct value and i even tried using .getchunk(100)= =20 > with same result every time .... >=20=20 >=20=20 > Does anyone seen this before ? It's quite important for me, cause i'd=20 > like to use postgres sql server as backend server for many other=20 > applications, but many of them will be IIS5+ with vbScript, so if i'm=20 > not able to use large data i have to try something else :-(, and i don't= =20 > want to ..... In your ODBC settings for the connection, check under the "Datasource"=20 page of the Advanced Options (page 1) - if your Data Type Options has=20 "Text as LongVarChar" checked (I think this is the default), then check=20 and see what "Max LongVarChar" is set to below it, in "Miscellanous"=20 (should be set to 8190 as default) - try bumping this number up. On a related note - I have a question for everyone else: If "Text as LongVarChar" is unchecked, what does the Text datatype come=20 back as? In other words, is there some way to set the ODBC driver to=20 ignore any sizing constraints? Leaving it as-is, and modifying a number=20 to a really large value (if you don't know how big a field will get),=20 while it should work, doesn't seem like the optimum way to do it... Andrew Ayers Phoenix, Arizona -- CONFIDENTIALITY NOTICE -- This message is intended for the sole use of the individual and entity to w= hom it is addressed, and may contain information that is privileged, confid= ential and exempt from disclosure under applicable law. If you are not the = intended addressee, nor authorized to receive for the intended addressee, y= ou are hereby notified that you may not use, copy, disclose or distribute t= o anyone the message or any information contained in the message. If you ha= ve received this message in error, please immediately advise the sender by = reply email, and delete the message. Thank you.