Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZJlYZ-0004su-LE for pgsql-odbc@arkaria.postgresql.org; Mon, 27 Jul 2015 16:47:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZJlYY-00086J-QK for pgsql-odbc@arkaria.postgresql.org; Mon, 27 Jul 2015 16:47:14 +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 1ZJlYY-000865-8h for pgsql-odbc@postgresql.org; Mon, 27 Jul 2015 16:47:14 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZJlYV-0001rW-GO for pgsql-odbc@postgresql.org; Mon, 27 Jul 2015 16:47:12 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 7E12521273 for ; Mon, 27 Jul 2015 12:47:10 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Mon, 27 Jul 2015 12:47:10 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=xfBtei+QKtU+NsO8RPFjETPEVWw=; b=jsfgIa SUnHx4BIGHCxUzjd9owmOKCrczRd2DNH6viPeLEKR9e2I8cE9BFqMtgj32A7ZN55 zOTj6cl1ko57y03Hm+p3B7TqCKUDao5eLRhPT2Lha0GSuolciyPQck8/1M9ZXDvS jEiTmRc2QWNwBwmu8zcQpOgZ+rh4Nbn5Nr9rA= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=xfBtei+QKtU+NsO 8RPFjETPEVWw=; b=omJjd3PcikK3JGrEIM3TU5yw/teg+Pq82cdm8pYjdYNaKET Y+a5WIVkrCmoDw3w/7lpsRDu734qa2dsIYfI3YbMrZvSqx9rT3ZNAsRnMKcZyqOY AWnqOYMbesRYv4ELvi7oEqgRJxN09zqPj2e2r5yGod5jU6PLI6Thy1r2rhak= X-Sasl-enc: 7DA5FM9FGqHhHTd/l0GDHOAQSEzmjsoFrE5XXBJs2c5I 1438015630 Received: from killi.site (c-24-17-179-185.hsd1.wa.comcast.net [24.17.179.185]) by mail.messagingengine.com (Postfix) with ESMTPA id EFA016800E8; Mon, 27 Jul 2015 12:47:09 -0400 (EDT) Message-ID: <55B6609A.7070108@aklaver.com> Date: Mon, 27 Jul 2015 09:47:22 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Jens Sorensen , pgsql-odbc@postgresql.org Subject: Re: PSQLODBC.DLL - The (maximum) expected data length is 8000, while the returned data length is 9606. References: <4854fc01d0c6cb$fc0c0010$f4240030$@Intuii.com> <55B656AD.6020800@aklaver.com> <8FB820A2-C966-42A5-B5D2-BA4BA7170BC3@Intuii.com> In-Reply-To: <8FB820A2-C966-42A5-B5D2-BA4BA7170BC3@Intuii.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) 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 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.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