pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
using pgsql-odbc with ASP and ADO
3+ messages / 3 participants
[nested] [flat]

* using pgsql-odbc with ASP and ADO
@ 2004-01-30 01:01  Jan Novak <jan.novak@interbis.cz>
  0 siblings, 0 replies; 3+ messages in thread

From: Jan Novak @ 2004-01-30 01:01 UTC (permalink / raw)
  To: pgsql-odbc

Hi, 
i'm using pgsql-odbc driver for connection to my postgres sql server and
everything works fine.
But today i made some application with text areas with large content (>32kB)
and i'm in trouble ....
 
If I just fetch data from database
    set objRS = Connection.execute "SELECT * FROM ""table"" where id=23"
and use them : response.write objRS("largeConent")
i get displayed only something like 8kB of data.
 
When i tried using
objRS("fieldName").getChunk(objRS("fieldName").actualSize) i got an error
message : ADODB.Field error '800a0c93', Operation is not allowed in this
context.
.actualSize contains correct value and i even tried using .getchunk(100)
with same result every time ....
 
 
Does anyone seen this before ? It's quite important for me, cause i'd like
to use postgres sql server as backend server for many other applications,
but many of them will be IIS5+ with vbScript, so if i'm not able to use
large data i have to try something else :-(, and i don't want to .....
 
Thanks for any hint or advice, 
 
Bye, Honza Novak

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: using pgsql-odbc with ASP and ADO
@ 2004-02-02 17:06  Andrew Ayers <aayers@eldocomp.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Andrew Ayers @ 2004-02-02 17:06 UTC (permalink / raw)
  To: Jan Novak <jan.novak@interbis.cz>; +Cc: pgsql-odbc

Jan Novak wrote:
> Hi,
> i'm using pgsql-odbc driver for connection to my postgres sql server and 
> everything works fine.
> But today i made some application with text areas with large content 
> (>32kB) and i'm in trouble ....
>  
> If I just fetch data from database
>     set objRS = Connection.execute "SELECT * FROM ""table"" where id=23"
> and use them : response.write objRS("largeConent")
> i get displayed only something like 8kB of data.
>  
> When i tried using 
> objRS("fieldName").getChunk(objRS("fieldName").actualSize) i got an 
> error message : *ADODB.Field error '800a0c93', Operation is not allowed 
> in this context.*
> .actualSize contains correct value and i even tried using .getchunk(100) 
> with same result every time ....
>  
>  
> Does anyone seen this before ? It's quite important for me, cause i'd 
> like to use postgres sql server as backend server for many other 
> applications, but many of them will be IIS5+ with vbScript, so if i'm 
> not able to use large data i have to try something else :-(, and i don't 
> want to .....

In your ODBC settings for the connection, check under the "Datasource" 
page of the Advanced Options (page 1) - if your Data Type Options has 
"Text as LongVarChar" checked (I think this is the default), then check 
and see what "Max LongVarChar" is set to below it, in "Miscellanous" 
(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 
back as? In other words, is there some way to set the ODBC driver to 
ignore any sizing constraints? Leaving it as-is, and modifying a number 
to a really large value (if you don't know how big a field will get), 
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 whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email, and delete the message. Thank you.



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: using pgsql-odbc with ASP and ADO
@ 2004-02-02 19:30  Jeff Eckermann <jeff_eckermann@yahoo.com>
  parent: Andrew Ayers <aayers@eldocomp.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Jeff Eckermann @ 2004-02-02 19:30 UTC (permalink / raw)
  To: Andrew Ayers <aayers@eldocomp.com>; Jan Novak <jan.novak@interbis.cz>; +Cc: pgsql-odbc

--- Andrew Ayers <aayers@eldocomp.com> wrote:
> Jan Novak wrote:
> > Hi,
> > i'm using pgsql-odbc driver for connection to my
> postgres sql server and 
> > everything works fine.
> > But today i made some application with text areas
> with large content 
> > (>32kB) and i'm in trouble ....
> >  
> > If I just fetch data from database
> >     set objRS = Connection.execute "SELECT * FROM
> ""table"" where id=23"
> > and use them : response.write objRS("largeConent")
> > i get displayed only something like 8kB of data.
> >  
> > When i tried using 
> >
>
objRS("fieldName").getChunk(objRS("fieldName").actualSize)
> i got an 
> > error message : *ADODB.Field error '800a0c93',
> Operation is not allowed 
> > in this context.*
> > .actualSize contains correct value and i even
> tried using .getchunk(100) 
> > with same result every time ....
> >  
> >  
> > Does anyone seen this before ? It's quite
> important for me, cause i'd 
> > like to use postgres sql server as backend server
> for many other 
> > applications, but many of them will be IIS5+ with
> vbScript, so if i'm 
> > not able to use large data i have to try something
> else :-(, and i don't 
> > want to .....
> 
> In your ODBC settings for the connection, check
> under the "Datasource" 
> page of the Advanced Options (page 1) - if your Data
> Type Options has 
> "Text as LongVarChar" checked (I think this is the
> default), then check 
> and see what "Max LongVarChar" is set to below it,
> in "Miscellanous" 
> (should be set to 8190 as default) - try bumping
> this number up.

This sounds a lot like the problem reported here:

http://groups.google.com/groups?dq=&hl=en&lr=&ie=UTF-8&threadm=02d401c3e0f8%24539c76...

(Apologies for the long URL and the wrapping).  You
might want to try the snapshot .dll to see if it works
for you.

> 
> On a related note - I have a question for everyone
> else:
> 
> If "Text as LongVarChar" is unchecked, what does the
> Text datatype come 
> back as? In other words, is there some way to set

That depends on what the app you are using maps to the
SQL type "LongVarChar".  For example, MS Access maps
it to its "Memo" datatype.

> the ODBC driver to 
> ignore any sizing constraints? Leaving it as-is, and
> modifying a number 
> to a really large value (if you don't know how big a
> field will get), 
> while it should work, doesn't seem like the optimum
> way to do it...

I've never had a problem with the default values, but
then, I've never gotten too ambitious about data
storage, either.

> 
> Andrew Ayers
> Phoenix, Arizona
> 
> -- CONFIDENTIALITY NOTICE --
> 
> This message is intended for the sole use of the
> individual and entity to whom it is addressed, and
> may contain information that is privileged,
> confidential and exempt from disclosure under
> applicable law. If you are not the intended
> addressee, nor authorized to receive for the
> intended addressee, you are hereby notified that you
> may not use, copy, disclose or distribute to anyone
> the message or any information contained in the
> message. If you have received this message in error,
> please immediately advise the sender by reply email,
> and delete the message. Thank you.
> 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 7: don't forget to increase your free space map
settings


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2004-02-02 19:30 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-01-30 01:01 using pgsql-odbc with ASP and ADO Jan Novak <jan.novak@interbis.cz>
2004-02-02 17:06 Re: using pgsql-odbc with ASP and ADO Andrew Ayers <aayers@eldocomp.com>
2004-02-02 19:30 ` Jeff Eckermann <jeff_eckermann@yahoo.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