Yea I did actually wrap the error as you suggested because I was not getting
anything back from the routine.
Te e_failed was from internet explorer not my app (I did not have on error
When I put the statement it still saw an error in error count, but no
description not even an e_failed?
From: Dave Page [mailto:dpage(at)vale-housing(dot)co(dot)uk]
Sent: Thursday, September 01, 2005 12:14 PM
To: Joel Fradkin
Subject: RE: [ODBC] figuring out why I am having this issue
> -----Original Message-----
> From: Joel Fradkin [mailto:jfradkin(at)wazagua(dot)com]
> Sent: 01 September 2005 16:16
> To: Dave Page
> Cc: pgsql-odbc(at)postgresql(dot)org
> Subject: RE: [ODBC] figuring out why I am having this issue
> That is the error description
> If con.Errors.Count >= 1 Then
> set Error = con.Errors.Item(0)
> 'take the error code from SQL Server
> ErrCode = Error.NativeError
> End If
> Could be there is better method, but this what I have been using.
Dunno if there's a better method - I would be inclined to loop round
con.Errors.Count though - maybe something like:
For X = 1 To con.Errors.Count
set Error = con.Errors.Item(X - 1)
'take the error code from SQL Server
ErrCode = Error.NativeError
> I have tested putting a 300 meg text field in the data base
> nad it worked so
> not clear why it works on most data and this one does not.
> I did email you the log file (not sure it is any help).
Yeah, I can't see anything obviously wrong in it. A few things to
- ASP seems to be retrieving data as SQL_C_CHAR, which means it's
getting raw data, not UCS2 converted from UTF8.
- ASP is retrieving data in 32KB chunks, so it would probably be worth
making sure max_long_varchar is at least that.
- Some data (quotes and such) doesn't look so good. Could it have been
pasted from MS Word or similar?
- Are you compiling the driver yourself? If so how? It seems to be using
the old comms layer, not libpq (which I'm no longer working on). The
giveaway is lines like the following which are for debugging the network
connecting to the server socket...
connection to the server socket succeeded.
sizeof startup packet = 292
sent the authentication block.
sent the authentication block successfully.
gonna do authentication
read 15, global_socket_buffersize=8192
auth got 'R'
areq = 0
auth got 'K'
auth got 'Z'
All this is now encapsulated in libpq, which doesn't log what it's
To fix this, compile on the command line:
nmake /f win32.mak
This should ensure you get the default libpq build. If you're doing this
in an IDE, make sure USE_LIBPQ is defined!
In response to
pgsql-odbc by date
|Next:||From: Marko Ristola||Date: 2005-09-01 17:20:32|
|Subject: Re: Unicode support|
|Previous:||From: Joel Fradkin||Date: 2005-09-01 16:34:00|
|Subject: Re: figuring out why I am having this issue|