From sezmillenium@yahoo.es Thu Dec 4 05:55:07 2003 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id E9E82D1B4D6 for ; Thu, 4 Dec 2003 05:55:07 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 72675-09 for ; Thu, 4 Dec 2003 01:54:36 -0400 (AST) Received: from smtp016.mail.yahoo.com (smtp016.mail.yahoo.com [216.136.174.113]) by svr1.postgresql.org (Postfix) with SMTP id A13CDD1B457 for ; Thu, 4 Dec 2003 01:54:35 -0400 (AST) Received: from unknown (HELO sergi) (sezmillenium@217.126.2.212 with login) by smtp016.mail.yahoo.com with SMTP; 4 Dec 2003 05:54:34 -0000 Message-ID: <004901c3ba2a$66fb8be0$6937a8c0@cepex.com> From: "Sezmillenium" To: Subject: access and postgresql Date: Thu, 4 Dec 2003 06:49:32 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0044_01C3BA32.C5FF9B60" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.9 tagged_above=0.0 required=5.0 tests=HTML_40_50, HTML_FONT_COLOR_BLUE, HTML_FONT_COLOR_RED X-Spam-Level: X-Archive-Number: 200312/6 X-Sequence-Number: 3544 This is a multi-part message in MIME format. ------=_NextPart_000_0044_01C3BA32.C5FF9B60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, I read your article "Using Microsoft Access with PostgreSQL" in http://= techdocs.postgresql.org/v2/Guides/Using%20Microsoft%20Access%20with%20Postg= reSQL/ .=20 I am interested to convert access database to postgresql and I must use= access to front view because I have a visual basic application. I tryed fe= w months ago and I have a problem with seek function. You can see the code = below: Set maquina =3D bd.OpenRecordset("maquina") maquina.index =3D "primarykey" maquina.Seek "=3D", OF With ODBC connection don't accept seek, because is a function that only= works with access (is Jet connector). I didn't find a solution because I c= annot change all code. Do you know something???=20 Thanks SERGI ------=_NextPart_000_0044_01C3BA32.C5FF9B60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi all,
    I read = your=20 article "Using Microsoft Access with PostgreSQL" in <= A=20 href=3D"http://techdocs.postgresql.org/v2/Guides/Using Microsoft Access wit= h PostgreSQL/">http://techdocs.postgresql.org/v2/Guides/Using%20Microsoft%2= 0Access%20with%20PostgreSQL/=20 .
 
    I am in= terested to=20 convert access database to postgresql and I must use access to front view= =20 because I have a visual basic application. I tryed few months ago and I hav= e a=20 problem with seek function. You can see the code below:
 
Set maquina =3D=20 bd.OpenRecordset("maquina")
maquina.index =3D=20 "primarykey"
maquina.Seek=20 "=3D", OF
 
    With OD= BC=20 connection don't accept seek, because is a function that only works with ac= cess=20 (is Jet connector). I didn't find a solution because I cannot change all co= de.=20 Do you know something???
 
Thanks
SERGI
------=_NextPart_000_0044_01C3BA32.C5FF9B60-- From aayers@eldocomp.com Thu Dec 4 16:41:30 2003 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 61996D1B445 for ; Thu, 4 Dec 2003 16:41:30 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 72142-04 for ; Thu, 4 Dec 2003 12:40:59 -0400 (AST) Received: from ecintweb.eldocomp.com (smtp.eldocomp.com [205.159.99.8]) by svr1.postgresql.org (Postfix) with ESMTP id 5EA4BD1B436 for ; Thu, 4 Dec 2003 12:40:58 -0400 (AST) Received: by ecintweb.eldocomp.com with XWall v3.28 ; Thu, 4 Dec 2003 09:40:41 -0700 From: Andrew Ayers To: "pgsql-odbc@postgresql.org" Subject: Re: [bayes] access and postgresql Date: Thu, 4 Dec 2003 09:40:40 -0700 X-Assembled-By: XWall v3.28 Message-ID: <3FCF6388.8080009@eldocomp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/14 X-Sequence-Number: 3552 Sezmillenium wrote: > Hi all, > I read your article "Using Microsoft Access with PostgreSQL" in=20 > http://techdocs.postgresql.org/v2/Guides/Using%20Microsoft%20Access%20wit= h%20PostgreSQL/=20 > PostgreSQL/> . >=20=20 > I am interested to convert access database to postgresql and I must= =20 > use access to front view because I have a visual basic application. I=20 > tryed few months ago and I have a problem with seek function. You can=20 > see the code below: >=20=20 > Set maquina =3D bd.OpenRecordset("maquina") > maquina.index =3D "primarykey" > maquina.Seek "=3D", OF >=20=20 > With ODBC connection don't accept seek, because is a function that=20 > only works with access (is Jet connector). I didn't find a solution=20 > because I cannot change all code. Do you know something??? What you likely have is a VBA for Access application (not a straight VB=20 application). There is a subtle difference, but it is there. Anyhow, if=20 VBA is anything like VB, then something akin to: Set maquina =3D bd.OpenRecordset("SELECT * FROM maquina WHERE _ primarykey =3D '" & OF & "'") Note that I am using the convention in VB of the underscore for line=20 continuation. Anyhow, this is likely something like you want (this makes a big=20 assumption that the VBA OpenRecordset function operates in the same=20 manner as the VB OpenRecordset function, which it likely does. It also=20 leaves out some things which I am not going to repeat here, simply=20 because I have noted enough of using VB with PostgreSQL and it is all in=20 the archives of the ODBC and GENERAL mailing lists). Note, BTW, that if you want any semblance of speed, you will need to set=20 up that index on your table (ie, CREATE INDEX, referencing primarykey) -=20 you don't get indexes for "free" under PG like you do in Access - if you=20 have used Access for a while, you may have a lot to unlearn/relearn). Hopefully, this will get you started down the right road. Andrew L. Ayers -- CONFIDENTIALITY NOTICE -- This message is intended for the sole use of the individual and entity to w= hom it is addressed, and may contain information that is privileged, confid= ential and exempt from disclosure under applicable law. If you are not the = intended addressee, nor authorized to receive for the intended addressee, y= ou are hereby notified that you may not use, copy, disclose or distribute t= o anyone the message or any information contained in the message. If you ha= ve received this message in error, please immediately advise the sender by = reply email, and delete the message. Thank you. From nobody@nowhere.near.here Fri Dec 5 18:29:05 2003 X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id C29EBD1B457 for ; Fri, 5 Dec 2003 18:29:05 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 04642-05 for ; Fri, 5 Dec 2003 14:28:35 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 1F202D1B43A for ; Fri, 5 Dec 2003 14:28:34 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id hB5ISSbI093133 for ; Fri, 5 Dec 2003 18:28:28 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id hB5Hxdfk090078 for pgsql-odbc@postgresql.org; Fri, 5 Dec 2003 17:59:39 GMT From: "nobody" X-Newsgroups: comp.databases.postgresql.interfaces.odbc Subject: Re: access and postgresql Date: Fri, 5 Dec 2003 17:59:42 -0000 Organization: Hub.Org Networking Services Lines: 30 Message-ID: References: <004901c3ba2a$66fb8be0$6937a8c0@cepex.com> X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 To: pgsql-odbc@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/29 X-Sequence-Number: 3567 Could not you open the recordset with a specific WHERE condition in it? : db.OpenRecordset("SELECT * FROM maquina WHERE " This way it would only pull the record(s) satysfying the WHERE condition. Also, the SQL can be generated programatically before db.OpenRecordset(). ""Sezmillenium"" wrote in message news:004901c3ba2a$66fb8be0$6937a8c0@cepex.com... Hi all, I read your article "Using Microsoft Access with PostgreSQL" in http://techdocs.postgresql.org/v2/Guides/Using%20Microsoft%20Access%20with%20PostgreSQL/ . I am interested to convert access database to postgresql and I must use access to front view because I have a visual basic application. I tryed few months ago and I have a problem with seek function. You can see the code below: Set maquina = bd.OpenRecordset("maquina") maquina.index = "primarykey" maquina.Seek "=", OF With ODBC connection don't accept seek, because is a function that only works with access (is Jet connector). I didn't find a solution because I cannot change all code. Do you know something??? Thanks SERGI From raanders@acm.org Mon Jun 14 23:50:21 2004 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 52DC7D1B18F for ; Mon, 14 Jun 2004 20:50:21 -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 09477-07 for ; Mon, 14 Jun 2004 23:50:19 +0000 (GMT) Received: from main.cyber-office.net (main.cyber-office.net [216.64.180.226]) by svr1.postgresql.org (Postfix) with ESMTP id 0DA19D1B182 for ; Mon, 14 Jun 2004 20:50:14 -0300 (ADT) Received: from localhost (raanders@localhost) by main.cyber-office.net (8.11.6/linuxconf) with ESMTP id i5ENoJP16176 for ; Mon, 14 Jun 2004 16:50:19 -0700 Date: Mon, 14 Jun 2004 16:50:19 -0700 (PDT) From: "Roderick A. Anderson" X-X-Sender: To: Subject: @#$%^& Access and PostgreSQL Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/26 X-Sequence-Number: 4096 I have spent two days now trying to get MS Access to play with PostgreSQL. Searched the archives of this list and Google'd myself crazy but either I'm the only one having problems with this :-) or I haven't figured out the right keywords to search. Short story. Pg 7.2 running on a Linux box. MS Access 2000 on WinXP Pro. I can query and fiddle with the data in Access but I haven't figured out how to get the changes back into Pg. There is nothing worth a darn in the Access help and working my way through the menus has got me no success. Quick; please someone hit me with a cluestick! Or if it's too far to reach is there a tutorial on using MS Access and Pg together? Oh yeah, I looked at pgAccess but the site is down and the registrar indicates it is being deleted. PgAdmin II (since I'm using Pg 7.2) is ... OK, but too slow for editing by the folks I work with. TIA, Rod -- "Open Source Software - You usually get more than you pay for..." "Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL" From mail@joeconway.com Tue Jun 15 01:23:52 2004 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 239A8D1B1BE for ; Mon, 14 Jun 2004 22:23:52 -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 49148-01 for ; Tue, 15 Jun 2004 01:23:49 +0000 (GMT) Received: from joeconway.com (66-146-172-86.skyriver.net [66.146.172.86]) by svr1.postgresql.org (Postfix) with ESMTP id 5E946D1B19C for ; Mon, 14 Jun 2004 22:23:44 -0300 (ADT) Received: from [206.19.64.3] (account jconway HELO joeconway.com) by joeconway.com (CommuniGate Pro SMTP 4.1.8) with ESMTP-TLS id 1812930; Mon, 14 Jun 2004 18:16:17 -0700 Message-ID: <40CE4FA3.2020100@joeconway.com> Date: Mon, 14 Jun 2004 18:23:47 -0700 From: Joe Conway User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040510 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Roderick A. Anderson" Cc: pgsql-odbc@postgresql.org Subject: Re: @#$%^& Access and PostgreSQL References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/27 X-Sequence-Number: 4097 Roderick A. Anderson wrote: > Short story. Pg 7.2 running on a Linux box. MS Access 2000 on WinXP Pro. > I can query and fiddle with the data in Access but I haven't figured out > how to get the changes back into Pg. > > Quick; please someone hit me with a cluestick! Or if it's too far to > reach is there a tutorial on using MS Access and Pg together? It's been a long time since I've messed with MSAccess/pgsql, but IIRC, you need to be sure your table has a primary key defined to get a writeable recordset. Also, make sure the linked table on the Access side reflects that. HTH, Joe From greg.campbell@us.michelin.com Tue Jun 15 14:45:21 2004 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 E9034D1B2BD for ; Tue, 15 Jun 2004 11:45:21 -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 04724-02 for ; Tue, 15 Jun 2004 14:45:16 +0000 (GMT) Received: from gk-us2.michelin.com (gk-us2.michelin.com [156.65.14.19]) by svr1.postgresql.org (Postfix) with ESMTP id D302CD1B19C for ; Tue, 15 Jun 2004 11:45:10 -0300 (ADT) Received: from ONCMH1.onc.michelin.com (unverified) by gk-us2.michelin.com (Content Technologies SMTPRS 4.3.10) with ESMTP id for ; Tue, 15 Jun 2004 09:24:15 -0400 Received: from oncmtap1.onc.michelin.com by oncmh1.onc.michelin.com with ESMTP for pgsql-odbc@postgresql.org; Tue, 15 Jun 2004 09:27:06 -0400 Received: from oncems01.onc.michelin.com ([156.65.125.150]) by oncmtap1.onc.michelin.com (Netscape Messaging Server 4.15) with ESMTP id HZCQVI00.I6K for ; Tue, 15 Jun 2004 09:30:54 -0400 Received: from us.michelin.com (unverified) by oncems01.onc.michelin.com (Content Technologies SMTPRS 4.2.5) with ESMTP id ; Tue, 15 Jun 2004 09:30:54 -0400 Message-Id: <40CEFA09.5000906@us.michelin.com> Date: Tue, 15 Jun 2004 09:30:49 -0400 From: "Greg Campbell" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Roderick A. Anderson" Cc: pgsql-odbc@postgresql.org Subject: Re: [Maybe Spam] @#$%^& Access and PostgreSQL References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------020505030708000008090905" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.1 tagged_above=0.0 required=5.0 tests=RCVD_IN_RFCI X-Spam-Level: X-Archive-Number: 200406/28 X-Sequence-Number: 4098 This is a multi-part message in MIME format. --------------020505030708000008090905 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit can't get changes back into pg. That is not a lot to go on. We don't know if your are using a simple action query, a bound form, or VBA code. You might supply some detail about what you've done and what failed. Remember - with MS Access and PostgreSQL you are in a client-server situation. One in which PostgreSQL doesn't really do attached recordsets. Think read is one step, write is another step, being linked is an illusion. With that in mind, you may want to try a simple append query. (You might want to do a make table query to get the schema right and use that table to populate what you want to append). OBDC will simulate an attached recordset (the illusion bound table part) if your source has a primary key, and better yet OIDs. This will help in the case of bound forms. On the PostgreSQL server side you may want to see if postgreSQL is logging on startup (the pg_ctl -l filename) option. Look for errors. On the ODBC side you may want to turn on logging and trace the communication flow (the logs get pretty big pretty quick). Good Luck Roderick A. Anderson wrote: >I have spent two days now trying to get MS Access to play with PostgreSQL. >Searched the archives of this list and Google'd myself crazy but either >I'm the only one having problems with this :-) or I haven't figured out >the right keywords to search. > >Short story. Pg 7.2 running on a Linux box. MS Access 2000 on WinXP Pro. >I can query and fiddle with the data in Access but I haven't figured out >how to get the changes back into Pg. > >There is nothing worth a darn in the Access help and working my way >through the menus has got me no success. > >Quick; please someone hit me with a cluestick! Or if it's too far to >reach is there a tutorial on using MS Access and Pg together? > >Oh yeah, I looked at pgAccess but the site is down and the registrar >indicates it is being deleted. PgAdmin II (since I'm using Pg 7.2) is ... >OK, but too slow for editing by the folks I work with. > > >TIA, >Rod > > --------------020505030708000008090905 Content-Type: text/x-vcard; charset=utf8; 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;ENG-IT adr;dom:;;2420 Two Notch Road;Lexington;SC;29071 email;internet:greg.campbell@us.michelin.com title:Systems Engineer tel;work:803-951-5561 tel;fax:803-951-5531 x-mozilla-html:FALSE version:2.1 end:vcard --------------020505030708000008090905-- From philippe.lang@attiksystem.ch Tue Jun 15 14:59:56 2004 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 62C45D1B1D9 for ; Tue, 15 Jun 2004 11:59:56 -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 06565-07 for ; Tue, 15 Jun 2004 14:59:47 +0000 (GMT) Received: from poweredge.attiksystem.ch (adsl-soholight-4-c59-p029.vtx.ch [212.147.59.29]) by svr1.postgresql.org (Postfix) with ESMTP id 47F77D1B1B4 for ; Tue, 15 Jun 2004 11:59:45 -0300 (ADT) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Re: @#$%^& Access and PostgreSQL X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 Date: Tue, 15 Jun 2004 16:59:44 +0200 Message-ID: <6C0CF58A187DA5479245E0830AF84F42080312@poweredge.attiksystem.ch> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ODBC] @#$%^& Access and PostgreSQL Thread-Index: AcRSa0R5AIHt7FjFRGSTwPQNie1IZwAfVyxA From: "Philippe Lang" To: "Roderick A. Anderson" , X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/29 X-Sequence-Number: 4099 Hello, Firstly, beleive me, Access linked to Postgresql through ODBC works really = well. The driver works fine, I'm using it every day, several clients too. How do you "query and fiddle with the data in Access"? You have to use a **= *linked ODBC table***, and in this case, updates are transparent. You simpl= y modify the data, and the updates are generated for you. Is that what you = are trying to do? Philippe -----Message d'origine----- De : pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.or= g] De la part de Roderick A. Anderson Envoy=E9 : mardi, 15. juin 2004 01:50 =C0 : pgsql-odbc@postgresql.org Objet : [ODBC] @#$%^& Access and PostgreSQL I have spent two days now trying to get MS Access to play with PostgreSQL.= =20=20 Searched the archives of this list and Google'd myself crazy but either I'm= the only one having problems with this :-) or I haven't figured out the ri= ght keywords to search. Short story. Pg 7.2 running on a Linux box. MS Access 2000 on WinXP Pro.= =20=20 I can query and fiddle with the data in Access but I haven't figured out ho= w to get the changes back into Pg. There is nothing worth a darn in the Access help and working my way through= the menus has got me no success. Quick; please someone hit me with a cluestick! Or if it's too far to reach= is there a tutorial on using MS Access and Pg together? Oh yeah, I looked at pgAccess but the site is down and the registrar indica= tes it is being deleted. PgAdmin II (since I'm using Pg 7.2) is ...=20 OK, but too slow for editing by the folks I work with. TIA, Rod --=20 "Open Source Software - You usually get more than you pay for..." "Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL" ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match From jeff_eckermann@yahoo.com Tue Jun 15 15:17:10 2004 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 F0596D1B1D9 for ; Tue, 15 Jun 2004 12:17:10 -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 22570-03 for ; Tue, 15 Jun 2004 15:17:06 +0000 (GMT) Received: from web20804.mail.yahoo.com (web20804.mail.yahoo.com [216.136.226.193]) by svr1.postgresql.org (Postfix) with SMTP id 603C5D1B1C8 for ; Tue, 15 Jun 2004 12:17:03 -0300 (ADT) Message-ID: <20040615151659.36113.qmail@web20804.mail.yahoo.com> Received: from [24.248.12.72] by web20804.mail.yahoo.com via HTTP; Tue, 15 Jun 2004 08:16:59 PDT Date: Tue, 15 Jun 2004 08:16:59 -0700 (PDT) From: Jeff Eckermann Subject: Re: @#$%^& Access and PostgreSQL To: "Roderick A. Anderson" Cc: pgsql-odbc@postgresql.org In-Reply-To: <40CE4FA3.2020100@joeconway.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/30 X-Sequence-Number: 4100 --- Joe Conway wrote: > Roderick A. Anderson wrote: > > Short story. Pg 7.2 running on a Linux box. MS > Access 2000 on WinXP Pro. > > I can query and fiddle with the data in Access but > I haven't figured out > > how to get the changes back into Pg. > > > > > Quick; please someone hit me with a cluestick! Or > if it's too far to > > reach is there a tutorial on using MS Access and > Pg together? > > It's been a long time since I've messed with > MSAccess/pgsql, but IIRC, > you need to be sure your table has a primary key > defined to get a > writeable recordset. Also, make sure the linked > table on the Access side > reflects that. Good points: always refresh (or relink) your linked tables after making changes to tables on the server side; also, I find life becomes much easier with Access when I use a serial primary key on every table as a matter of course. Have you created your tables without oid's? I believe that could cause you a problem, because the ODBC driver expects oid's in some circumstances. In any case, I suggest you set the "row versioning" driver setting to true. The suggestion elsewhere to turn on logging, on both client and server sides, is a good one. > > HTH, > > Joe > > ---------------------------(end of > broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please > send an appropriate > subscribe-nomail command to > majordomo@postgresql.org so that your > message can get through to the mailing list > cleanly > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail From raanders@acm.org Tue Jun 15 17:31:42 2004 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 68155D1B1BC for ; Tue, 15 Jun 2004 14:31:42 -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 95720-09 for ; Tue, 15 Jun 2004 17:31:41 +0000 (GMT) Received: from main.cyber-office.net (main.cyber-office.net [216.64.180.226]) by svr1.postgresql.org (Postfix) with ESMTP id 4FCBDD1B175 for ; Tue, 15 Jun 2004 14:31:39 -0300 (ADT) Received: from localhost (raanders@localhost) by main.cyber-office.net (8.11.6/linuxconf) with ESMTP id i5FHVXG20780; Tue, 15 Jun 2004 10:31:33 -0700 Date: Tue, 15 Jun 2004 10:31:33 -0700 (PDT) From: "Roderick A. Anderson" X-X-Sender: To: Philippe Lang Cc: Subject: Re: @#$%^& Access and PostgreSQL In-Reply-To: <6C0CF58A187DA5479245E0830AF84F42080312@poweredge.attiksystem.ch> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/31 X-Sequence-Number: 4101 On Tue, 15 Jun 2004, Philippe Lang wrote: > Hello, > > Firstly, beleive me, Access linked to Postgresql through ODBC works > really well. The driver works fine, I'm using it every day, several > clients too. Used to be for me also a year or three ago. This new go-round (I spent three plus years not having to deal with MS Access) it has been anything but smooth. The few times before it was a slam dunk. > How do you "query and fiddle with the data in Access"? You have to use > a ***linked ODBC table***, and in this case, updates are transparent. > You simply modify the data, and the updates are generated for you. Is > that what you are trying to do? Philippe, this is the term I was missing. 'Linked' ODBC tables. For some reason when I created the Access portion last week there was no ODBC data sources for linked tables ... I think. Probably had something else in mind when I tried using this option. No there wasn't. It's working now. Thanks to all for suggestions and a couple of clue-sticks. Rod -- "Open Source Software - You usually get more than you pay for..." "Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL" From m2calabr@yahoo.com Thu Jun 17 17:14:49 2004 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 4D7C7D1B37D for ; Thu, 17 Jun 2004 14:14:49 -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 28271-10 for ; Thu, 17 Jun 2004 17:14:48 +0000 (GMT) Received: from BFServer003.bf-internal.com (66-224-46-90.atgi.net [66.224.46.90]) by svr1.postgresql.org (Postfix) with ESMTP id A3679D1B34A for ; Thu, 17 Jun 2004 14:14:46 -0300 (ADT) Received: from yahoo.com (dev.bf-internal.com [192.168.1.6]) by BFServer003.bf-internal.com (8.12.8/8.12.8) with ESMTP id i5HHQJHS005776 for ; Thu, 17 Jun 2004 10:26:20 -0700 Message-ID: <40D1D350.1010208@yahoo.com> Date: Thu, 17 Jun 2004 10:22:24 -0700 From: Michael Calabrese Reply-To: m2calabr@yahoo.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040117 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Re: @#$%^& Access and PostgreSQL References: <40CE4FA3.2020100@joeconway.com> In-Reply-To: <40CE4FA3.2020100@joeconway.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.8 tagged_above=0.0 required=5.0 tests=FORGED_YAHOO_RCVD, RCVD_FAKE_HELO_DOTCOM X-Spam-Level: * X-Archive-Number: 200406/35 X-Sequence-Number: 4105 Are you getting any error messages. Are getting the dreaded #DELETED in the cells after to insert. You may need to turn row versioning on in the ODBC settings. Michael Joe Conway wrote: > Roderick A. Anderson wrote: > >> Short story. Pg 7.2 running on a Linux box. MS Access 2000 on WinXP >> Pro. I can query and fiddle with the data in Access but I haven't >> figured out how to get the changes back into Pg. > > >> >> Quick; please someone hit me with a cluestick! Or if it's too far to >> reach is there a tutorial on using MS Access and Pg together? > > > It's been a long time since I've messed with MSAccess/pgsql, but IIRC, > you need to be sure your table has a primary key defined to get a > writeable recordset. Also, make sure the linked table on the Access > side reflects that. > > HTH, > > Joe > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly From raanders@acm.org Thu Jun 17 18:03:26 2004 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 8EE4CD1B1CD for ; Thu, 17 Jun 2004 15:03:26 -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 92525-07 for ; Thu, 17 Jun 2004 18:03:26 +0000 (GMT) Received: from main.cyber-office.net (main.cyber-office.net [216.64.180.226]) by svr1.postgresql.org (Postfix) with ESMTP id 8140ED1B1BE for ; Thu, 17 Jun 2004 15:03:19 -0300 (ADT) Received: from localhost (raanders@localhost) by main.cyber-office.net (8.11.6/linuxconf) with ESMTP id i5HI3K901940 for ; Thu, 17 Jun 2004 11:03:20 -0700 Date: Thu, 17 Jun 2004 11:03:20 -0700 (PDT) From: "Roderick A. Anderson" X-X-Sender: To: Subject: Re: @#$%^& Access and PostgreSQL In-Reply-To: <40D1D350.1010208@yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/36 X-Sequence-Number: 4106 On Thu, 17 Jun 2004, Michael Calabrese wrote: > Are you getting any error messages. Are getting the dreaded #DELETED in > the cells after to insert. You may need to turn row versioning on in > the ODBC settings. > Michael Sorry to all for not updating you. I sorted it out. It was the linked table issue -- mine were not. I'm hooked up and editing now. I haven't had a need to insert anything yet as most of the entry is done via a web form and scripts. Rod -- "Open Source Software - You usually get more than you pay for..." "Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL"