X-Original-To: pgsql-odbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 8C6329FB26A for ; Tue, 8 Aug 2006 18:19:50 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 46587-02 for ; Tue, 8 Aug 2006 18:19:41 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by postgresql.org (Postfix) with ESMTP id 562959FB276 for ; Tue, 8 Aug 2006 18:19:41 -0300 (ADT) Received: by nf-out-0910.google.com with SMTP id n28so394800nfc for ; Tue, 08 Aug 2006 14:19:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=CtMunQ8xxWQ7dBndaIkVCACC4L9ZoeJaG3S8oG61302GXfLW3jEuZOgqv4fP7AyC+5sy0WOKUiLlLDL+BFHLCqHjOa4muLT6bWO0AJwLS1F8OVEjTFbiPrsdvPf8LfNp8r7bcxvcAL2nFuo26ifhfQ39LrfO89t6WpLhlKLwwMg= Received: by 10.82.102.15 with SMTP id z15mr3068bub; Tue, 08 Aug 2006 14:19:39 -0700 (PDT) Received: by 10.82.110.19 with HTTP; Tue, 8 Aug 2006 14:19:39 -0700 (PDT) Message-ID: Date: Tue, 8 Aug 2006 17:19:39 -0400 From: "Biswajit Bardalai" To: pgsql-odbc@postgresql.org Subject: ODBC connection string MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11512_31465453.1155071979490" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.749 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, HTML_30_40, HTML_MESSAGE, NORMAL_HTTP_TO_IP, SPF_PASS X-Spam-Level: X-Archive-Number: 200608/33 X-Sequence-Number: 7997 ------=_Part_11512_31465453.1155071979490 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'm using the following connection string to programatically link PostgreSQL tables to MS Access. strConn="ODBC;DRIVER={PostgreSQL};DATABASE=myDb;SERVER=192.168.0.91 ;" & _ "PORT=5432;UID=myDbUser;PWD=pass;A0=0;A1=7.4;A2=1;A3=0;A4=1;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_" Dim tdf As TableDef Set tdf = db.CreateTableDef(clients, dbAttachSavePWD, public.clients, strConn) db.TableDefs.Append tdf db.TableDefs.Refresh I can create the linked tables and insert rows into them. The problem is tables without primary keys cannot be updated, though an insert is okay. However, tables linked through a system DSN, have no updation problem. Is there an error in the connection string? Where can one find the complete list of parameters? I don't want to create a DSN as I intend to distribute the Access file and don't want savvy users to be able to access the tables through the DSN. I'm not keen on creating a primary key for every table, either. Is there a solution to this problem? Been looking for a one for several days. FYI, the PostgreSQL ODBC driver version is: 8.02.00.02 Thanks, Biswajit -- Call Toronto free: http://www.vbuzzer.com/index.php?aid=biswajit Free SMS: http://www.atrochatro.com/ptnr.php?ptnr=12259 ------=_Part_11512_31465453.1155071979490 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,

I'm using the following connection string to programatically link PostgreSQL tables to MS Access.

strConn="ODBC;DRIVER={PostgreSQL};DATABASE=myDb;SERVER= 192.168.0.91 ;" & _
 "PORT=5432;UID=myDbUser;PWD=pass;A0=0;A1=7.4;A2=1;A3=0;A4=1;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_"

    Dim tdf As TableDef

    Set tdf = db.CreateTableDef(clients, dbAttachSavePWD, public.clients, strConn)
    db.TableDefs.Append tdf
    db.TableDefs.Refresh

I can create the linked tables and insert rows into them. The problem is tables without primary keys cannot be updated, though an insert is okay.

However, tables linked through a system DSN, have no updation problem. Is there an error in the connection string? Where can one find the complete list of parameters?

I don't want to create a DSN as I intend to distribute the Access file and don't want savvy users to be able to access the tables through the DSN. I'm not keen on creating a primary key for every table, either.

Is there a solution to this problem? Been looking for a one for several days.

FYI, the PostgreSQL ODBC driver version is: 8.02.00.02

Thanks,
Biswajit


--
Call Toronto free: http://www.vbuzzer.com/index.php?aid=biswajit
Free SMS: http://www.atrochatro.com/ptnr.php?ptnr=12259 ------=_Part_11512_31465453.1155071979490--