Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wt1RJ-00087U-3r for pgsql-odbc@arkaria.postgresql.org; Fri, 06 Jun 2014 21:12:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wt1RI-0004Jb-J1 for pgsql-odbc@arkaria.postgresql.org; Fri, 06 Jun 2014 21:12:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wt1RH-0004JU-OO for pgsql-odbc@postgresql.org; Fri, 06 Jun 2014 21:12:39 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by magus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wt1R8-0004vH-Ox for pgsql-odbc@postgresql.org; Fri, 06 Jun 2014 21:12:38 +0000 Received: (qmail 25275 invoked by uid 512); 6 Jun 2014 21:12:25 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 6 Jun 2014 21:12:25 -0000 Received: from unknown (HELO ?192.168.1.8?) (183.76.63.174) by sd.tpf.co.jp with SMTP; 6 Jun 2014 21:12:25 -0000 Message-ID: <53922EE4.9090306@tpf.co.jp> Date: Sat, 07 Jun 2014 06:13:08 +0900 From: "Inoue, Hiroshi" User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: "John C. Frickson" CC: Michael Paquier , PostgreSQL ODBC List Subject: Re: SQLBulkOperations References: <1402025533.8234.13.camel@server.frickson.pvt> <1402055839.8234.18.camel@server.frickson.pvt> <5391B076.8070208@tpf.co.jp> <1402059306.8234.34.camel@server.frickson.pvt> In-Reply-To: <1402059306.8234.34.camel@server.frickson.pvt> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 (2014/06/06 21:55), John C. Frickson wrote: > /etc/unixODBC/odbcinst.ini: > [PSQL] > Description = PostgreSQL > Driver64 = /usr/lib64/psqlodbcw.so > UsageCount = 1 > > I set attributes like this: > > SQLSetEnvAttr(henv, SQL_ATTR_ODBC_VERSION, (SQLPOINTER)SQL_OV_ODBC3, 0); > SQLSetConnectAttr(hdbc,SQL_ATTR_ODBC_CURSORS,(SQLPOINTER)SQL_CUR_USE_ODBC,0); > SQLSetStmtAttr(hstmt,SQL_ATTR_CONCURRENCY, SQL_CONCUR_ROWVER, 0); > SQLSetStmtAttr(hstmt,SQL_ATTR_CURSOR_TYPE,SQL_CURSOR_KEYSET_DRIVEN,0); > > Connection is DSN-less using connection string: > DRIVER={PGSQL};SERVER=xx.xxx.xx.x;UID=user;PWD=pass;DATABASE=MyDB;UseServerSidePrepare=1; Please try to add UpdatabelCursors=1 to your connection string. BTW is the version of the driver 8.3.0200 not 9.3.0200? regards, Hiroshi Inoue -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc