Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id A4E45632BF7 for ; Tue, 16 Feb 2010 11:29:18 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 37272-06 for ; Tue, 16 Feb 2010 15:29:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from serveurmail01.codata.be (113.123.146.82.ipv4.evonet.be [82.146.123.113]) by mail.postgresql.org (Postfix) with ESMTP id E2AF7632893 for ; Tue, 16 Feb 2010 11:29:06 -0400 (AST) Received: from localhost (localhost.localdomain [127.0.0.1]) by serveurmail01.codata.be (Postfix) with ESMTP id 5694F1F38249; Tue, 16 Feb 2010 16:29:04 +0100 (CET) X-Virus-Scanned: amavisd-new at Received: from serveurmail01.codata.be ([127.0.0.1]) by localhost (serveurmail01.codata.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rib9rc6caCTc; Tue, 16 Feb 2010 16:28:58 +0100 (CET) Received: from [127.0.0.1] (38-179-112-217.fix.adsl.belcenter.be [217.112.179.38]) by serveurmail01.codata.be (Postfix) with ESMTP id 416121F38246; Tue, 16 Feb 2010 16:28:58 +0100 (CET) Message-ID: <4B7AB9B9.4010704@codata.eu> Date: Tue, 16 Feb 2010 16:28:57 +0100 From: Arnaud Lesauvage User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1 MIME-Version: 1.0 To: "Relyea, Mike" , pgsql-odbc@postgresql.org Subject: Re: How to speedup inserts via ADO ? References: <4B753720.9060901@codata.eu> <4B7A17C0.5080309@tpf.co.jp> <4B7A68B6.2040302@codata.eu> <4B7AADFD.5000905@codata.eu> <4B7AB16E.4010807@codata.eu> <4B7AB6F7.8040607@codata.eu> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.101 tagged_above=-10 required=5 tests=BAYES_50=0.001, RDNS_DYNAMIC=0.1 X-Spam-Level: X-Archive-Number: 201002/16 X-Sequence-Number: 10203 Le 16/02/2010 16:22, Relyea, Mike a écrit : > A word of caution that I bumped into - passthrough queries have a limit > on the number of characters they can contain. I don't remember what > that limit is off the top of my head but I'd guess somewhere around > 65000. If your insert string(s) are very long you may have to split it > up into more than one passthrough. Thanks for the tip. Does it also apply to queries passed directly in VBA via the connection's "execute" method ? If that's the case, I might try to use an ADO "command" instead. But defining the parameters of such a command is even worse than parsing them in an INSERT string... -- Arnaud Lesauvage