X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B493A5289E for ; Thu, 9 Jun 2005 10:23:12 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 80226-05 for ; Thu, 9 Jun 2005 13:23:04 +0000 (GMT) Received: from gk-us2.michelin.com (gk-us2.michelin.com [156.65.14.19]) by svr1.postgresql.org (Postfix) with ESMTP id 3E0BE52814 for ; Thu, 9 Jun 2005 10:23:02 -0300 (ADT) Received: from ONCMH1.onc.michelin.com (unverified) by gk-us2.michelin.com (Content Technologies SMTPRS 4.3.17) with ESMTP id for ; Thu, 9 Jun 2005 09:22:23 -0400 Received: from oncmtap1.onc.michelin.com by oncmh1.onc.michelin.com with ESMTP for pgsql-odbc@postgresql.org; Thu, 9 Jun 2005 09:16:53 -0400 Received: from oncems01.onc.michelin.com ([156.65.125.150]) by oncmtap1.onc.michelin.com (Netscape Messaging Server 4.15) with ESMTP id IHTJUH00.1HO for ; Thu, 9 Jun 2005 09:23:05 -0400 Received: from [156.65.151.174] (unverified) by oncems01.onc.michelin.com (Content Technologies SMTPRS 4.2.5) with ESMTP id ; Thu, 9 Jun 2005 09:23:04 -0400 Message-Id: <42A842B5.9050100@us.michelin.com> Date: Thu, 09 Jun 2005 09:23:01 -0400 From: "Greg Campbell" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Vidas Makauskas Cc: pgsql-odbc@postgresql.org Subject: Re: ms access 97 References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------060406050400010003070501" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.026 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200506/42 X-Sequence-Number: 5429 This is a multi-part message in MIME format. --------------060406050400010003070501 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit If your recordset is going to be not updateable, you should try a dbOpenReadOnly instead of dbOpenDynaset. In fact I would say dbOpenDynaset should be reserved for Jet datasources. Make DML updates using individual UPDATE, INSERT, and DELETE statements. Vidas Makauskas wrote: > Hi, > > I can connect to database via DSN: > Set wrkODBC = CreateWorkspace("", "uname", "", dbUseODBC) > odbc="ODBC;DSN={PostgreSQL};DATABASE=db;SERVER=server;PORT=5432;Uid=uname;Pwd=pass;" > Set conODBC = wrkODBC.OpenConnection("uname", , , odbc) > > Some years ago i've been using DRIVER instead of DSN: > odbc="ODBC;DRIVER={PostgreSQL};DATABASE=db;SERVER=server;PORT=5432;Uid=name;Pwd=pw;" > & _ > '"A0=0;A1=6.4;A2=0;A3=0;A4=0;A5=0;A6=;A7=100;A8=4096;A9=0;"B0=254;B1=8190;B2=0;B3=0;B4=1;B5=1;B6=0;B7=1;B8=0;B9=1;C0=0;C1=0;C2=dd_" > but today i got error > what is wrong? > > I can edit link'ed table. Primary key exists too. But > Set recordset = conODBC.OpenRecordset("SELECT * FROM table", dbOpenDynaset > [,dbOptimistic] ) > recordset.updatable = false > what is wrong? > > Thanks in advance, > Best regards, > Vidas > > > > ---------------------------(end of broadcast)--------------------------- > TIP 7: don't forget to increase your free space map settings --------------060406050400010003070501 Content-Type: text/x-vcard; charset=utf-8; name="greg.campbell.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="greg.campbell.vcf" begin:vcard fn:Greg Campbell n:Campbell;Greg org:Michelin North America - US5 Lexington;ENG-ASE email;internet:greg.campbell@us.michelin.com title:ASE Systems Engineer tel;work:803-951-5561/x75561 x-mozilla-html:FALSE version:2.1 end:vcard --------------060406050400010003070501--