From: Jens Sorensen (Intuii) <JensSorensen@Intuii.com>
To: pgsql-odbc@postgresql.org
Subject: Re: PSQLODBC.DLL - The (maximum) expected data length is 8000, while the returned data length is 9606.
Date: Tue, 28 Jul 2015 15:13:51 -0700
Message-ID: <cb6ec01d0c982$b2788a40$17699ec0$@Intuii.com> (raw)
In-Reply-To: <55B780BD.6000700@aklaver.com>
References: <4854fc01d0c6cb$fc0c0010$f4240030$@Intuii.com>
<55B656AD.6020800@aklaver.com>
<8FB820A2-C966-42A5-B5D2-BA4BA7170BC3@Intuii.com>
<55B6609A.7070108@aklaver.com>
<ca4501d0c8fd$4029b2a0$c07d17e0$@Intuii.com>
<55B780BD.6000700@aklaver.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
Adrian>> You are doing a server to server transformation where psqlodbc is just one component in the mix. It would be helpful to have the entire transformation laid out in schematic for:
Adrian>> Postgres --> psqlodbc ????? --> SQL Server
I’m not sure how to lay this “out in schematic”, but hopefully what follows will provide the info you need.
Here is the setup I have for the PostgreSQL Unicode ODBC Driver (taken from the Windows Registry):
[HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\PostgreSQL35W]
"Driver"="C:\\Program Files\\psqlODBC\\0903\\bin\\psqlodbc35w.dll"
"CommLog"="0"
"Debug"="0"
"Fetch"="100"
"Optimizer"="0"
"Ksqo"="1"
"UniqueIndex"="1"
"UseDeclareFetch"="1"
"UnknownSizes"="0"
"TextAsLongVarchar"="1"
"UnknownsAsLongVarchar"="1"
"BoolsAsChar"="1"
"Parse"="0"
"CancelAsFreeStmt"="0"
"MaxVarcharSize"="255"
"MaxLongVarcharSize"="15000"
"ExtraSysTablePrefixes"="dd_;"
"Description"="Untangle"
"Database"="uvm"
"Servername"="10.5.55.1"
"Port"="5432"
"Username"="postgres"
"UID"="postgres"
"Password"=""
"ReadOnly"="0"
"ShowOidColumn"="0"
"FakeOidIndex"="0"
"RowVersioning"="0"
"ShowSystemTables"="0"
"Protocol"="7.4-1"
"ConnSettings"=""
"DisallowPremature"="0"
"UpdatableCursors"="1"
"LFConversion"="1"
"TrueIsMinus1"="0"
"BI"="0"
"AB"="0"
"ByteaAsLongVarBinary"="0"
"UseServerSidePrepare"="1"
"LowerCaseIdentifier"="0"
"GssAuthUseGSS"="0"
"SSLmode"="disable"
"XaOpt"="1"
"KeepaliveTime"="-1"
"KeepaliveInterval"="-1"
"PreferLibpq"="-1"
Adrian>> Also where are the error message above coming from?
Adrian>> I see reference to Procedure RetrieveHttpEvents, so my guess somewhere in the middle part of the diagram above.
I’m not sure which diagram you are referring to. I am running the RetrieveHttpEvents stored procedure in Microsoft SQL Server Management Studio:
EXEC [dbo].[RetrieveHttpEvents]
GO
Adrian>> Also when you say replaced 'text' column, where are you doing that, the Postgres server, SQL server or somewhere else?
I am changing the dbo.http_events table in SQL Server.
Adrian>> What is the actual CREATE TABLE definition for the tables on Postgres and SQL Server?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: JensSorensen@Intuii.com
Subject: Re: PSQLODBC.DLL - The (maximum) expected data length is 8000, while the returned data length is 9606.
In-Reply-To: <cb6ec01d0c982$b2788a40$17699ec0$@Intuii.com>
References: <4854fc01d0c6cb$fc0c0010$f4240030$@Intuii.com> <55B656AD.6020800@aklaver.com> <8FB820A2-C966-42A5-B5D2-BA4BA7170BC3@Intuii.com> <55B6609A.7070108@aklaver.com> <ca4501d0c8fd$4029b2a0$c07d17e0$@Intuii.com> <55B780BD.6000700@aklaver.com> <cb6ec01d0c982$b2788a40$17699ec0$@Intuii.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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