pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Row versionning between MS-Access and PostgreSQL 8
5+ messages / 3 participants
[nested] [flat]

* Row versionning between MS-Access and PostgreSQL 8
@ 2005-07-22 13:12  Ets ROLLAND <ets@rolland-fr.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Ets ROLLAND @ 2005-07-22 13:12 UTC (permalink / raw)
  To: pgsql-odbc

Hello !

I made the port of an Access 2002 Database to PostgreSQL 8, it seems to work.
I still use MS-Access 2002 for the application, using ODBC with linked tables.

For all the data created BEFORE the transfert to PostgreSQL, all works fine.
For the records created SINCE this transfert, it is impossible to modify or delete these records !?
MS-Access say that "The record is acceded by an other user", even I am the only user.

Someone tell to me, on the general forum, that :
"Access is trying to identify rows by looking at the data, which includes a timestamp.
 PG supports fractional-seconds which is confusing Access.
All your old timestamps aren't fractional because they were imported from Access.
When you define your timestamps in PG you can control how much accuracy you want
- might be worth dumping/restoring without the fractions.
Look for a "row versioning" option in your ODBC settings. Also, there's 
an ODBC list too - check the mailing-list archives for that."

So I understand the problem, but not how to fix it.
I was using psqlODBC v8.00.0101,
I've downloaded the new snapshot v8.01.0002 without any change.
I try to create row versioning function as explain at :
http://docman.sourceforge.net/home_html/projects/sql/access_fix.sql
but now MS-Access crash when I try to modify any record !

How can I fix the Row versionning between MS-Access and PostgreSQL 8 ?

Thanks for your help...

Bests regards.

Luc

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

* Row versionning between MS-Access and PostgreSQL 8
@ 2005-07-22 17:21  Ets ROLLAND <ets@rolland-fr.com>
  0 siblings, 2 replies; 5+ messages in thread

From: Ets ROLLAND @ 2005-07-22 17:21 UTC (permalink / raw)
  To: pgsql-odbc



Hello !

I made the port of an Access 2002 Database to PostgreSQL 8, it seems to work.
I still use MS-Access 2002 for the application, using ODBC with linked tables.

For all the data created BEFORE the transfert to PostgreSQL, all works fine.
For the records created SINCE this transfert, it is impossible to modify or delete these records !?
MS-Access say that "The record is acceded by an other user", even I am the only user.

Someone tell to me, on the general forum, that :
"Access is trying to identify rows by looking at the data, which includes a timestamp.
 PG supports fractional-seconds which is confusing Access.
All your old timestamps aren't fractional because they were imported from Access.
When you define your timestamps in PG you can control how much accuracy you want
- might be worth dumping/restoring without the fractions.
Look for a "row versioning" option in your ODBC settings. Also, there's 
an ODBC list too - check the mailing-list archives for that."

So I understand the problem, but not how to fix it.
I was using psqlODBC v8.00.0101,
I've downloaded the new snapshot v8.01.0002 without any change.
I try to create row versioning function as explain at :
http://docman.sourceforge.net/home_html/projects/sql/access_fix.sql
but now MS-Access crash when I try to modify any record !

How can I fix the Row versionning between MS-Access and PostgreSQL 8 ?

Thanks for your help...

Bests regards.

Luc

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

* Re: Row versionning between MS-Access and PostgreSQL 8
@ 2005-07-22 19:30  Greg Campbell <greg.campbell@us.michelin.com>
  parent: Ets ROLLAND <ets@rolland-fr.com>
  1 sibling, 0 replies; 5+ messages in thread

From: Greg Campbell @ 2005-07-22 19:30 UTC (permalink / raw)
  To: Ets ROLLAND <ets@rolland-fr.com>; +Cc: pgsql-odbc

You should not need a rowversioning function on your PostgreSQL server.

It is a setting in the ODBC driver. If you are using a DSN, when
configuring your PostgreSQL data source, in the PostgreSQL ODBC Data 
Source applet window,  use the datasource button, then Page
2, and click in the checkbox for  row versioning.
If you are using a DSN-less connection, for the Connection String
include the RowVersioning parameter (=1).

Access/OCBC wants to know if some other users has updated the record 
since you started viewing it -- it may query every field to see if they 
matched the state when you started to view.

The automatically assigned row version number will show up as xmin in 
any linked tables.

But primarily it wants to know if it has the correct record, and will 
query each field to see if it matches the last known state,.... unless 
it has an identifiable primary key.

Good primary keys, and row versioning solve many of problems.

Give every table a good primary key  (a key with no floats, no text/memo 
fields, no LOB/BLOB fields), even if the key is an otherwise unused 
serial (auto-number). Re-link fields if necessary. Access should have no 
problem determining the update state of records. If it does use the ODBC 
Administrator to turn on lo turn on tracing and capture a log file of 
typical activity.

The PostgreSQL documentation talks about how to set the resolution of 
your timestamp fields.



Ets ROLLAND wrote:
> 
> Hello !
>  
> I made the port of an Access 2002 Database to PostgreSQL 8, it seems to 
> work.
> I still use MS-Access 2002 for the application, using ODBC with linked 
> tables.
>  
> For all the data created BEFORE the transfert to PostgreSQL, all works fine.
> For the records created SINCE this transfert, it is impossible to modify 
> or delete these records !?
> MS-Access say that "The record is acceded by an other user", even I am 
> the only user.
>  
> Someone tell to me, on the general forum, that :
> "Access is trying to identify rows by looking at the data, which 
> includes a timestamp.
>  PG supports fractional-seconds which is confusing Access.
> All your old timestamps aren't fractional because they were imported 
> from Access.
> When you define your timestamps in PG you can control how much accuracy 
> you want
> - might be worth dumping/restoring without the fractions.
> Look for a "row versioning" option in your ODBC settings. Also, there's
> an ODBC list too - check the mailing-list archives for that."
>  
> So I understand the problem, but not how to fix it.
> I was using psqlODBC v8.00.0101,
> I've downloaded the new snapshot v8.01.0002 without any change.
> I try to create row versioning function as explain at :
> http://docman.sourceforge.net/home_html/projects/sql/access_fix.sql
> but now MS-Access crash when I try to modify any record !
> How can I fix the Row versionning between MS-Access and PostgreSQL 8 ?
>  
> Thanks for your help...
>  
> Bests regards.
>  
> Luc

Attachments:

greg.campbell.vcf (text/x-vcard, 239B) download 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
^ permalink raw reply [nested|flat] 5+ messages in thread

* Re: Row versionning between MS-Access and PostgreSQL 8
@ 2005-07-22 21:38  Greg Campbell <greg.campbell@us.michelin.com>
  parent: Ets ROLLAND <ets@rolland-fr.com>
  1 sibling, 0 replies; 5+ messages in thread

From: Greg Campbell @ 2005-07-22 21:38 UTC (permalink / raw)
  To: Ets ROLLAND <ets@rolland-fr.com>; +Cc: pgsql-odbc


[reply was a little scrambled the first time]

You should not need a rowversioning function on your PostgreSQL server.

It is a setting in the ODBC driver. If you are using a DSN, when
configuring your PostgreSQL data source, in the PostgreSQL ODBC Data 
Source applet window,  use the datasource button, then Page
2, and click in the checkbox for  row versioning.

If you are using a DSN-less connection, for the Connection String
include the RowVersioning parameter (=1).

The automatically assigned row version number will show up as xmin in 
any linked tables.

Access/OCBC wants to know if some other users has updated the record 
since you started viewing it -- it may query every field to see if they 
matched the state when you started to view.


But primarily it wants to know if it has the correct record, and will 
query each field to see if it matches the last known state,.... unless 
it has an identifiable primary key.

Good primary keys, and row versioning solve many of problems.

Give every table a good primary key  (a key with no floats, no text/memo 
fields, no LOB/BLOB fields), even if the key is an otherwise unused 
serial (auto-number). Re-link fields if necessary. Access should have no 
problem determining the update state of records. If it does use the ODBC 
Administrator to turn on lo turn on tracing and capture a log file of 
typical activity.

The PostgreSQL documentation talks about how to set the resolution of 
your timestamp fields.




Ets ROLLAND wrote:

> 
> Hello !
>  
> I made the port of an Access 2002 Database to PostgreSQL 8, it seems to 
> work.
> I still use MS-Access 2002 for the application, using ODBC with linked 
> tables.
>  
> For all the data created BEFORE the transfert to PostgreSQL, all works fine.
> For the records created SINCE this transfert, it is impossible to modify 
> or delete these records !?
> MS-Access say that "The record is acceded by an other user", even I am 
> the only user.
>  
> Someone tell to me, on the general forum, that :
> "Access is trying to identify rows by looking at the data, which 
> includes a timestamp.
>  PG supports fractional-seconds which is confusing Access.
> All your old timestamps aren't fractional because they were imported 
> from Access.
> When you define your timestamps in PG you can control how much accuracy 
> you want
> - might be worth dumping/restoring without the fractions.
> Look for a "row versioning" option in your ODBC settings. Also, there's
> an ODBC list too - check the mailing-list archives for that."
>  
> So I understand the problem, but not how to fix it.
> I was using psqlODBC v8.00.0101,
> I've downloaded the new snapshot v8.01.0002 without any change.
> I try to create row versioning function as explain at :
> http://docman.sourceforge.net/home_html/projects/sql/access_fix.sql
> but now MS-Access crash when I try to modify any record !
> How can I fix the Row versionning between MS-Access and PostgreSQL 8 ?
>  
> Thanks for your help...
>  
> Bests regards.
>  
> Luc

Attachments:

greg.campbell.vcf (text/x-vcard, 239B) download 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
^ permalink raw reply [nested|flat] 5+ messages in thread

* Re: Row versionning between MS-Access and PostgreSQL 8
@ 2005-07-24 18:07  Christof Thalhofer <devnull@deganius.de>
  parent: Ets ROLLAND <ets@rolland-fr.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Christof Thalhofer @ 2005-07-24 18:07 UTC (permalink / raw)
  To: pgsql-odbc

"Ets ROLLAND" wrote

> I made the port of an Access 2002 Database to PostgreSQL 8, it seems to
> work. I still use MS-Access 2002 for the application, using ODBC with
> linked tables. 
> 
> For all the data created BEFORE the transfert to PostgreSQL, all works
> fine. For the records created SINCE this transfert, it is impossible to
> modify or delete these records !? MS-Access say that "The record is
> acceded by an other user", even I am the only user. 

try an older psqlodbc driver. In my opinion psqlodbc-07_02_0005 or psqlodbc-
07_02_0004 should work, as I mentioned below. I had the same error with the 
newer drivers.

Alles Gute,

Christof
(For mail change "devnull" to my first name.)

-- 
oans zwoa drei fia 
#/&wrx§fs$%pff3örx4656tspf&äx=#%xkr§o&(w53x4bl=äh)$²²²²³%



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


end of thread, other threads:[~2005-07-24 18:07 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-07-22 13:12 Row versionning between MS-Access and PostgreSQL 8 Ets ROLLAND <ets@rolland-fr.com>
2005-07-24 18:07 ` Christof Thalhofer <devnull@deganius.de>
2005-07-22 17:21 Row versionning between MS-Access and PostgreSQL 8 Ets ROLLAND <ets@rolland-fr.com>
2005-07-22 19:30 ` Greg Campbell <greg.campbell@us.michelin.com>
2005-07-22 21:38 ` Greg Campbell <greg.campbell@us.michelin.com>

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