Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZKTKp-0003Vq-Mr for pgsql-odbc@arkaria.postgresql.org; Wed, 29 Jul 2015 15:32:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZKTKp-0001mf-8q for pgsql-odbc@arkaria.postgresql.org; Wed, 29 Jul 2015 15:31:59 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZKD81-0003ol-IE for pgsql-odbc@postgresql.org; Tue, 28 Jul 2015 22:13:41 +0000 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.228] helo=cdptpa-oedge-vip.email.rr.com) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZKD7y-00036N-2D for pgsql-odbc@postgresql.org; Tue, 28 Jul 2015 22:13:40 +0000 Received: from [66.27.108.254] ([66.27.108.254:31836] helo=NORTHPENNSYLVAN.intuii.local) by cdptpa-oedge03 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id 8F/94-29898-09EF7B55; Tue, 28 Jul 2015 22:13:36 +0000 Received: from NewCalifornia (66.27.108.254) by NORTHPENNSYLVAN.intuii.local (10.5.0.120) with Microsoft SMTP Server id 14.1.438.0; Tue, 28 Jul 2015 15:13:20 -0700 From: "Jens Sorensen (Intuii)" To: References: <4854fc01d0c6cb$fc0c0010$f4240030$@Intuii.com> <55B656AD.6020800@aklaver.com> <8FB820A2-C966-42A5-B5D2-BA4BA7170BC3@Intuii.com> <55B6609A.7070108@aklaver.com> <55B780BD.6000700@aklaver.com> In-Reply-To: <55B780BD.6000700@aklaver.com> 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: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_CB6ED_01D0C948.06228BE0" X-Mailer: Microsoft Outlook 15.0 Content-Language: en-us Thread-Index: AQFdXfJGKPzmMOG2VIHjfxzBfarCHgIT7Bt0AZVD/iABXrWjRwF1O+H+As/YKTeejVFuUA== X-Originating-IP: [66.27.108.254] X-RR-Connecting-IP: 107.14.168.142:25 X-Cloudmark-Score: 0 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org ------=_NextPart_000_CB6ED_01D0C948.06228BE0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 =20 I=E2=80=99m not sure how to lay this =E2=80=9Cout in schematic=E2=80=9D, = but hopefully what follows will provide the info you need.=20 =20 Here is the setup I have for the PostgreSQL Unicode ODBC Driver (taken = from the Windows Registry): =20 [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\PostgreSQL35W] "Driver"=3D"C:\\Program Files\\psqlODBC\\0903\\bin\\psqlodbc35w.dll" "CommLog"=3D"0" "Debug"=3D"0" "Fetch"=3D"100" "Optimizer"=3D"0" "Ksqo"=3D"1" "UniqueIndex"=3D"1" "UseDeclareFetch"=3D"1" "UnknownSizes"=3D"0" "TextAsLongVarchar"=3D"1" "UnknownsAsLongVarchar"=3D"1" "BoolsAsChar"=3D"1" "Parse"=3D"0" "CancelAsFreeStmt"=3D"0" "MaxVarcharSize"=3D"255" "MaxLongVarcharSize"=3D"15000" "ExtraSysTablePrefixes"=3D"dd_;" "Description"=3D"Untangle" "Database"=3D"uvm" "Servername"=3D"10.5.55.1" "Port"=3D"5432" "Username"=3D"postgres" "UID"=3D"postgres" "Password"=3D"" "ReadOnly"=3D"0" "ShowOidColumn"=3D"0" "FakeOidIndex"=3D"0" "RowVersioning"=3D"0" "ShowSystemTables"=3D"0" "Protocol"=3D"7.4-1" "ConnSettings"=3D"" "DisallowPremature"=3D"0" "UpdatableCursors"=3D"1" "LFConversion"=3D"1" "TrueIsMinus1"=3D"0" "BI"=3D"0" "AB"=3D"0" "ByteaAsLongVarBinary"=3D"0" "UseServerSidePrepare"=3D"1" "LowerCaseIdentifier"=3D"0" "GssAuthUseGSS"=3D"0" "SSLmode"=3D"disable" "XaOpt"=3D"1" "KeepaliveTime"=3D"-1" "KeepaliveInterval"=3D"-1" "PreferLibpq"=3D"-1" =20 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. =20 I=E2=80=99m not sure which diagram you are referring to. I am running = the RetrieveHttpEvents stored procedure in Microsoft SQL Server = Management Studio: =20 EXEC [dbo].[RetrieveHttpEvents] GO =20 Adrian>> Also when you say replaced 'text' column, where are you doing = that, the Postgres server, SQL server or somewhere else? =20 I am changing the dbo.http_events table in SQL Server.=20 =20 Adrian>> What is the actual CREATE TABLE definition for the tables on = Postgres and SQL Server? =20