pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
access linked tables
5+ messages / 4 participants
[nested] [flat]

* access linked tables
@ 2001-02-22 10:33 Tamsin <tg_mail@bryncadfan.co.uk>
  2001-02-22 10:48 ` RE: access linked tables Joseph <lters@mrtc.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Tamsin @ 2001-02-22 10:33 UTC (permalink / raw)
  To: pgsql-odbc

Hi,
Not sure if this is the right place to ask this - I'm just getting started
converting an access database to use postgresql as the database and access
as the front end.  I'm looking at whether its ok to just use linked tables
and bound forms, or whether I need to use a combination of ADO, pass-through
queries, unbound forms, and explicit code to comunicate with the db.

My question is, although my postgres tables have PKs, with linked tables
when access generates a query to do an update it doesn't use the pk in the
where clause, but does something like:
update tablename set field1 = 'newvalue1', field2 = 'newvalue2'....
where field1 = 'oldvalue1' and field2 = 'oldvalue2'... etc etc for all the
fields in the table.

This seems unneccesary and inefficient to me - is it normal behaviour for
access linked tables?  Is there something I can do to tell access to just
use the pk?

I'm using postgres 7.0.2, ODBC driver 6.5

Thanks,
Tamsin




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* RE: access linked tables
  2001-02-22 10:33 access linked tables Tamsin <tg_mail@bryncadfan.co.uk>
@ 2001-02-22 10:48 ` Joseph <lters@mrtc.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Joseph @ 2001-02-22 10:48 UTC (permalink / raw)
  To: Tamsin <tg_mail@bryncadfan.co.uk>; +Cc: pgsql-odbc

As long as you don't need performance, I would say bound forms, reports is
fine.

If you are working with large tables and need lots of performance than you
want
lots of unbound forms and controls,passthrough queries etc.


Joseph Showalter

-----Original Message-----
From: pgsql-odbc-owner@postgresql.org
[mailto:pgsql-odbc-owner@postgresql.org]On Behalf Of Tamsin
Sent: Thursday, February 22, 2001 5:33 AM
To: postgres odbc
Subject: access linked tables


Hi,
Not sure if this is the right place to ask this - I'm just getting started
converting an access database to use postgresql as the database and access
as the front end.  I'm looking at whether its ok to just use linked tables
and bound forms, or whether I need to use a combination of ADO, pass-through
queries, unbound forms, and explicit code to comunicate with the db.

My question is, although my postgres tables have PKs, with linked tables
when access generates a query to do an update it doesn't use the pk in the
where clause, but does something like:
update tablename set field1 = 'newvalue1', field2 = 'newvalue2'....
where field1 = 'oldvalue1' and field2 = 'oldvalue2'... etc etc for all the
fields in the table.

This seems unneccesary and inefficient to me - is it normal behaviour for
access linked tables?  Is there something I can do to tell access to just
use the pk?

I'm using postgres 7.0.2, ODBC driver 6.5

Thanks,
Tamsin




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Access Linked Tables
@ 2002-11-15 17:34 Karl Swisher <kswisher@buffalocoal.biz>
  2002-11-15 18:15 ` Re: Access Linked Tables Alan R. Johns <alan@graphicsuniversal.com>
  2002-11-15 18:39 ` Re: Access Linked Tables Karl Swisher <kswisher@buffalocoal.biz>
  0 siblings, 2 replies; 5+ messages in thread

From: Karl Swisher @ 2002-11-15 17:34 UTC (permalink / raw)
  To: pgsql-odbc

Hello,
	I'm having a problem with Access link tables.   I have set up an .mdb file 
with links to the tables in Postgresql.  The .mdb file is on the network 
drive.   The links were made using the DSN connection from the pull down 
menu File\Get External Data\Link Tables.  I can view, update and insert 
data to the tables in the Datasheet view on my machine.   However I can't 
look at the tables when I run the .mdb file on another machine unless I 
first delete and relink the tables on that machine.  Then for the 
same  .mdb file to work on my machine I have to repeat the process.  Access 
returns an error "ODBC--connection to 'PGSQL-Buffalo Trucking' failed" and 
then "Microsoft Access can't open the table in Datasheet view".   I've 
turned on the logs in the driver but have been unable to find any generated 
log.  I've even tried (as a test) giving full public access to the tables 
in Postgresql with the same results. I've also tried using a single 
user/password in the DSN on each machine matching a user and password in 
Postgresql with the same results.

	I would rather not if possible have a separate .mdb file for each user 
since all the reports, forms, queries are in Access and any modification to 
them would require modifying all the files.

	I have the code under HOWTOs\Access VBA on linking tables from the 
psqlODBC web site.  Should this be used instead of linking through the menus ?

	I'm using psql-ODBC 7.02.00.1, Postgresql 7.2 on the Linux machine and the 
Windows client machines are all Win2k-sp2 running Office2k.

Thanks
Karl





^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Access Linked Tables
  2002-11-15 17:34 Access Linked Tables Karl Swisher <kswisher@buffalocoal.biz>
@ 2002-11-15 18:15 ` Alan R. Johns <alan@graphicsuniversal.com>
  1 sibling, 0 replies; 5+ messages in thread

From: Alan R. Johns @ 2002-11-15 18:15 UTC (permalink / raw)
  To: Karl Swisher <kswisher@buffalocoal.biz>; pgsql-odbc


Are you sure you have the exact same PostgreSQL ODBC "Data Source Name"
setup in the ODBC manager on each machine?

-Alan

-----Original Message-----
From: pgsql-odbc-owner@postgresql.org
[mailto:pgsql-odbc-owner@postgresql.org]On Behalf Of Karl Swisher
Sent: Friday, November 15, 2002 12:35 PM
To: pgsql-odbc@postgresql.org
Subject: [ODBC] Access Linked Tables


Hello,
	I'm having a problem with Access link tables.   I have set up an .mdb file
with links to the tables in Postgresql.  The .mdb file is on the network
drive.   The links were made using the DSN connection from the pull down
menu File\Get External Data\Link Tables.  I can view, update and insert
data to the tables in the Datasheet view on my machine.   However I can't
look at the tables when I run the .mdb file on another machine unless I
first delete and relink the tables on that machine.  Then for the
same  .mdb file to work on my machine I have to repeat the process.  Access
returns an error "ODBC--connection to 'PGSQL-Buffalo Trucking' failed" and
then "Microsoft Access can't open the table in Datasheet view".   I've
turned on the logs in the driver but have been unable to find any generated
log.  I've even tried (as a test) giving full public access to the tables
in Postgresql with the same results. I've also tried using a single
user/password in the DSN on each machine matching a user and password in
Postgresql with the same results.

	I would rather not if possible have a separate .mdb file for each user
since all the reports, forms, queries are in Access and any modification to
them would require modifying all the files.

	I have the code under HOWTOs\Access VBA on linking tables from the
psqlODBC web site.  Should this be used instead of linking through the menus
?

	I'm using psql-ODBC 7.02.00.1, Postgresql 7.2 on the Linux machine and the
Windows client machines are all Win2k-sp2 running Office2k.

Thanks
Karl



---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/users-lounge/docs/faq.html




^ permalink  raw  reply  [nested|flat] 5+ messages in thread

* Re: Access Linked Tables
  2002-11-15 17:34 Access Linked Tables Karl Swisher <kswisher@buffalocoal.biz>
@ 2002-11-15 18:39 ` Karl Swisher <kswisher@buffalocoal.biz>
  1 sibling, 0 replies; 5+ messages in thread

From: Karl Swisher @ 2002-11-15 18:39 UTC (permalink / raw)
  To: Alan R. Johns <alan@graphicsuniversal.com>; pgsql-odbc

Thank you Alan
         That made the difference.  I had left out a space between two of 
the words in the DSN name.
Thanks
Karl
At 01:15 PM 11/15/2002 -0500, Alan R. Johns wrote:

>Are you sure you have the exact same PostgreSQL ODBC "Data Source Name"
>setup in the ODBC manager on each machine?
>
>-Alan
>
>-----Original Message-----
>From: pgsql-odbc-owner@postgresql.org
>[mailto:pgsql-odbc-owner@postgresql.org]On Behalf Of Karl Swisher
>Sent: Friday, November 15, 2002 12:35 PM
>To: pgsql-odbc@postgresql.org
>Subject: [ODBC] Access Linked Tables
>
>
>Hello,
>         I'm having a problem with Access link tables.   I have set up an 
> .mdb file
>with links to the tables in Postgresql.  The .mdb file is on the network
>drive.   The links were made using the DSN connection from the pull down
>menu File\Get External Data\Link Tables.  I can view, update and insert
>data to the tables in the Datasheet view on my machine.   However I can't
>look at the tables when I run the .mdb file on another machine unless I
>first delete and relink the tables on that machine.  Then for the
>same  .mdb file to work on my machine I have to repeat the process.  Access
>returns an error "ODBC--connection to 'PGSQL-Buffalo Trucking' failed" and
>then "Microsoft Access can't open the table in Datasheet view".   I've
>turned on the logs in the driver but have been unable to find any generated
>log.  I've even tried (as a test) giving full public access to the tables
>in Postgresql with the same results. I've also tried using a single
>user/password in the DSN on each machine matching a user and password in
>Postgresql with the same results.
>
>         I would rather not if possible have a separate .mdb file for each 
> user
>since all the reports, forms, queries are in Access and any modification to
>them would require modifying all the files.
>
>         I have the code under HOWTOs\Access VBA on linking tables from the
>psqlODBC web site.  Should this be used instead of linking through the menus
>?
>
>         I'm using psql-ODBC 7.02.00.1, Postgresql 7.2 on the Linux 
> machine and the
>Windows client machines are all Win2k-sp2 running Office2k.
>
>Thanks
>Karl
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 5: Have you checked our extensive FAQ?
>
>http://www.postgresql.org/users-lounge/docs/faq.html





^ permalink  raw  reply  [nested|flat] 5+ messages in thread


end of thread, other threads:[~2002-11-15 18:39 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-02-22 10:33 access linked tables Tamsin <tg_mail@bryncadfan.co.uk>
2001-02-22 10:48 ` Joseph <lters@mrtc.com>
2002-11-15 17:34 Access Linked Tables Karl Swisher <kswisher@buffalocoal.biz>
2002-11-15 18:15 ` Re: Access Linked Tables Alan R. Johns <alan@graphicsuniversal.com>
2002-11-15 18:39 ` Re: Access Linked Tables Karl Swisher <kswisher@buffalocoal.biz>

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