Skip site navigation (1) Skip section navigation (2)

logout Postgres from MS Access (ODBC) ?

From: Zlatko Matić <zlatko(dot)matic1(at)sb(dot)t-com(dot)hr>
To: <pgsql-interfaces(at)postgresql(dot)org>, <pgsql-general(at)postgresql(dot)org>
Subject: logout Postgres from MS Access (ODBC) ?
Date: 2005-06-05 10:53:08
Message-ID: 001501c569bc$c3378150$2f758353@zlatkovyfkpgz6 (view raw, whole thread or download thread mbox)
Lists: pgsql-generalpgsql-interfaces
In MS Access/PostgreSQL combination I have login form. After user writes all neccessary inputs and push the button, a startup procedure creates DSN-less 
connection string, receates all linked tables and change connection string in all pass-through queries. It works nice...
But, how to achieve LOGOUT ? I would like to allow users to login/logout consecutively from MS Access front-end without need to close front-end.
I tried to perform new login with the same login form after already being login, but it seems that Access accepts even wrong passwords after connection 
once established (!?)  It seems that consecutive login does not affect at all, after ODBC connection was once established...If you give correct username, new DSN-less connection will be accepted even if the password is wrong...tabledef.RefreshLink didn't help...
So, I think that  I have to close all ODBC connections (linked tables, pass-through queries) somehow and the enforce new login. How to do it ?

Also, I tried to use pg_shadow system table for inspecting whether password is OK, but it seems that password is encrypted, so Access can't compare password from pg.shadow and password on the login form. What to do in order that Access can see actual password from pg_shadow ?


pgsql-interfaces by date

Next:From: Volkan YAZICIDate: 2005-06-05 13:04:47
Subject: Re: libpq, PQExecParams and the inserting of binary data
Previous:From: Tom LaneDate: 2005-06-05 04:40:43
Subject: Re: DBD::Pg performance bites compared to DBD::mysql?

pgsql-general by date

Next:From: Joachim ZobelDate: 2005-06-05 18:53:30
Subject: Re: Limits of SQL
Previous:From: Michael GlaesemannDate: 2005-06-05 10:43:45
Subject: Re: Getting the Type Definition in the information schema

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group