From: Adrian Klaver <adrian.klaver@aklaver.com>
To: 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 06:16:45 -0700
Message-ID: <55B780BD.6000700@aklaver.com> (raw)
In-Reply-To: <ca4501d0c8fd$4029b2a0$c07d17e0$@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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
On 07/27/2015 11:18 PM, Jens Sorensen (Intuii) wrote:
> Thanks,
>
> I've replaced the 'text' column.
>
> Here is the error messages when I use 'varchar(max)':
>
> Msg 7347, Level 16, State 1, Procedure RetrieveHttpEvents, Line 18
> OLE DB provider 'MSDASQL' for linked server '(null)' returned data that does not match expected data length for column '[MSDASQL].uri'. The (maximum) expected data length is 8000, while the returned data length is 9606.
>
> And here is the error messages when I use 'varchar(max)':
>
> Msg 7347, Level 16, State 1, Procedure RetrieveHttpEvents, Line 18
> OLE DB provider 'MSDASQL' for linked server '(null)' returned data that does not match expected data length for column '[MSDASQL].uri'. The (maximum) expected data length is 8000, while the returned data length is 9606.
>
> So unfortunately this does not appear to have made a difference.
>
> Here is my current query on SQL Server:
>
>
> What additional information can I provide you that would be useful?
>
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:
Postgres --> psqlodbc ????? --> SQL Server
Also where are the error message above coming from?
I see reference to Procedure RetrieveHttpEvents, so my guess somewhere
in the middle part of the diagram above.
Also when you say replaced 'text' column, where are you doing that, the
Postgres server, SQL server or somewhere else?
What is the actual CREATE TABLE definition for the tables on Postgres
and SQL Server?
Remember we are not looking at your set up directly, we only have what
you provide and the more you provide the better.
--
Adrian Klaver
adrian.klaver@aklaver.com
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
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: adrian.klaver@aklaver.com, JensSorensen@Intuii.com
Subject: Re: PSQLODBC.DLL - The (maximum) expected data length is 8000, while the returned data length is 9606.
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>
* 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