Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 7C93A633168 for ; Tue, 10 Aug 2010 16:16:44 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 64707-06 for ; Tue, 10 Aug 2010 19:16:37 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from n6-vm0.bullet.mail.gq1.yahoo.com (n6-vm0.bullet.mail.gq1.yahoo.com [98.137.26.79]) by mail.postgresql.org (Postfix) with SMTP id C465D632BCF for ; Tue, 10 Aug 2010 16:16:36 -0300 (ADT) Received: from [67.195.9.81] by n6.bullet.mail.gq1.yahoo.com with NNFMP; 10 Aug 2010 19:16:34 -0000 Received: from [98.137.27.128] by t1.bullet.mail.gq1.yahoo.com with NNFMP; 10 Aug 2010 19:16:34 -0000 Received: from [127.0.0.1] by omp202.mail.gq1.yahoo.com with NNFMP; 10 Aug 2010 19:16:34 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 868238.88975.bm@omp202.mail.gq1.yahoo.com Received: (qmail 7275 invoked by uid 60001); 10 Aug 2010 19:16:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=att.net; s=s1024; t=1281467794; bh=7gJ55v1m8NCjmHleU9GMwlNDIonrTKpBl/iCdSJsm/o=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=1YdXUN/2WF1//29Xy87ldl5i53/57ocMm5A0M/xYtF9dxpp76QEUckTd2SrW4HGcPYCRBldT4V3kRcvlqrWwN6zK6uE/RuxRyOkoAz9Eks94G+fZBUGM0icVG7JHVz83kGh88weNkfyGsXg+rQK9Q559oLtjSImP1aiqj3HGJTU= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=att.net; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=0Qs1aw0g4ZMSTOJ97ODdt4o3yIPYzwz8ivf5oOl2sHBNdnhx9wBJnKhmu7R67u3igb6u4BYL9rqShhzEz0MgRIgES6/kMPrig8JhnBiCg9stQJqCQcEbOimggdYcgo3ACfLe81nuObaMABLeBENacLriVu+sUsQssYUQwqUKwZ4=; Message-ID: <699063.7017.qm@web180401.mail.gq1.yahoo.com> X-YMail-OSG: FDG2mfgVM1kWL9iO5Y8T.zhIWB8i.Wz74vz.39.m6mBlRrB bTWKOLwCLM3IVXqS_NfywEq_7C3pn5WuXMD2kNVbGXGvIZ8xJWCT.hbKQmWr Huz1n_mw8X4doRm_dgtd341ED00kk_1dWTZD6qkC9wFQbfXPojfiRC59Fz2s VMzBmfeIMZd2msDqv_Z9w_9got7zuNxF0Snz6p3u.GyuPXzoApDaeH2RxD6J ON_7.18IQXcAE7Zkhio3y7p5ixqkftpxyoTF.1WBgp9IamURgL2B52wyJ_cC 8Ya.yipft_SQk94eu7W4_A1GhpoafEHFWRDw- Received: from [216.177.168.154] by web180401.mail.gq1.yahoo.com via HTTP; Tue, 10 Aug 2010 12:16:34 PDT X-Mailer: YahooMailClassic/11.3.2 YahooMailWebService/0.8.105.279950 Date: Tue, 10 Aug 2010 12:16:34 -0700 (PDT) From: Dennis Evans Subject: SQLPrepare To: "pgsql-odbc@postgresql.org" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.8 tagged_above=-10 required=5 tests=BAYES_50=0.8, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201008/9 X-Sequence-Number: 10386 When using the PostGreSQL ODBC driver is calling SQLPrepare needed? Or will the server compile, cache and reuse the execution plan when SQLExecDIrect is used? When using with MS-SQL the call does no harm but is really not needed SQL Server will compile and cache the plan without calling SQLPrepare. Dennis