From: Arnaud Lesauvage <thewild@freesurf.fr>
To: pgsql-odbc@postgresql.org
Subject: MS Access & psqlODBC : Primary Key issue
Date: Wed, 03 May 2006 11:20:59 +0200
Message-ID: <445875FB.7010701@freesurf.fr> (raw)
Hi List !
I am trying to st up MS Access (2000) as a frontend for PostgreSQL
(8.1.2) using psqlODBC (8.01.0200).
There used to be a web site on this subject, but www.scw.org seems
to be offline.
There seems to be a problem with Access not recognizing my primary
keys. It works for some tables, but not for others.
My ODBC data source is configured as this :
Checked :
Disable Genetic Optimizer
KSQO
Recognize Unique Indexes
Parse Statements
Unknown Size Maximum
Text as LongVarChar
LF <-> CR/LF conversion
Row Versionning
True is -1
Int8 As Default
The problematic table is :
CREATE TABLE geo_pays
(
gid int4 NOT NULL DEFAULT nextval('geo_pays_gid_seq'::regclass),
codecontinent int8,
codepays int8 NOT NULL,
payspopulation int8,
payscapitale varchar(100),
payssuperficie varchar(50),
paysdensite varchar(50),
payspib varchar(50),
CONSTRAINT geo_pays_pkey PRIMARY KEY (codepays),
CONSTRAINT geo_pays_continents_fkey FOREIGN KEY (codecontinent)
REFERENCES geo_continents (codecontinent) MATCH SIMPLE
ON UPDATE CASCADE ON DELETE NO ACTION
)
WITHOUT OIDS;
In MSAccess, I link the table without any problem. Access does not
ask me for a unique row identifier (it does for some other tables,
but not for this one), *but* the primary key that it automatically
detects is payspopulation !!! There isn't even an index on this
column !
What is the problem with my configuration ?
Thanks for your help !
Regards
--
Arnaud
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: thewild@freesurf.fr
Subject: Re: MS Access & psqlODBC : Primary Key issue
In-Reply-To: <445875FB.7010701@freesurf.fr>
References: <445875FB.7010701@freesurf.fr>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox