From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | Jens Sorensen <JensSorensen(at)Intuii(dot)com>, pgsql-odbc(at)postgresql(dot)org |
Subject: | Re: PSQLODBC.DLL - The (maximum) expected data length is 8000, while the returned data length is 9606. |
Date: | 2015-07-27 16:47:22 |
Message-ID: | 55B6609A.7070108@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-odbc |
On 07/27/2015 09:16 AM, Jens Sorensen wrote:
> Hmm when I inserted the values into a table I believe it produced a
> column of nvarchar(4000). 4000 appears to be the max for nvarchar in SQL
> Server. However I changed the table to use type text instead, and it did
> not appear to affect the error message any.
First, as I understand it text is deprecated in SQL Server:
https://msdn.microsoft.com/en-us/library/ms187993.aspx
The 8000 limit you are hitting is seems to the upper limit of SQL Server
varchar() unless you specify max:
https://msdn.microsoft.com/en-us/library/ms176089.aspx
So I wonder if somewhere along the line varchar(8000) is being
substituted for text()?
This will need a more detailed description of what you are doing to answer.
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Jens Sorensen (Intuii) | 2015-07-28 06:18:37 | Re: PSQLODBC.DLL - The (maximum) expected data length is 8000, while the returned data length is 9606. |
Previous Message | Jens Sorensen | 2015-07-27 16:16:00 | Re: PSQLODBC.DLL - The (maximum) expected data length is 8000, while the returned data length is 9606. |