ODBC Upgrades

ODBC Upgrades

am 04.05.2007 16:17:48 von Annette_Curtis

This is a multi-part message in MIME format.

------=_NextPart_000_77fa73b8_34beda0.5093
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Currently I have 08.00.0101 installed as PSQLODBC dated 03/05/2005.
Whenever I attempt to use the MSI installation of any of the later
versions this dll does not upgrade and nor does it install the latest
version of the MSI either.=20

=20

I am currently running PostgreSQL ver. 8.2.x which was just upgraded
from 7.4.x this week. I was able to reload the entire client for PgAdmin
and it works successfully.=20

=20

However, I am unable to update the ODBC file and currently have users
who are unable to access there databases since I am unable to update the
ODBC client from the MSI installation. The majority of the users are on
WinXP a few are still on Win2K.=20

=20

Any advise would be more than welcome at this time.

=20

Thank you,

~Annette

_____ =20

Annette Curtis - Sr. Information Analyst

Database Manager

University of Rochester

255 Crittenden Blvd.=20

Rochester, New York 14620

School of Nursing - HWH 3W-324

office: (585) 275-5398
annette_curtis@urmc.rochester.edu

=20


------=_NextPart_000_77fa73b8_34beda0.5093
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable




charset=3Dus-ascii">












style=3D'font-size:10.0pt;
font-family:Arial'>Currently I have 08.00.0101 installed as PSQLODBC =
dated
03/05/2005. Whenever I attempt to use the MSI installation of any of the =
later
versions this dll does not upgrade and nor does it install the latest =
version of
the MSI either.



style=3D'font-size:10.0pt;
font-family:Arial'> 



style=3D'font-size:10.0pt;
font-family:Arial'>I am currently running PostgreSQL ver. 8.2.x which =
was just
upgraded from 7.4.x this week. I was able to reload the entire client =
for
PgAdmin and it works successfully.



style=3D'font-size:10.0pt;
font-family:Arial'> 



style=3D'font-size:10.0pt;
font-family:Arial'>However, I am unable to update the ODBC file and =
currently
have users who are unable to access there databases since I am unable to =
update
the ODBC client from the MSI installation. The majority of the users are =
on WinXP
a few are still on Win2K.



style=3D'font-size:10.0pt;
font-family:Arial'> 



style=3D'font-size:10.0pt;
font-family:Arial'>Any advise would be more than welcome at this =
time.



style=3D'font-size:10.0pt;
font-family:Arial'> 



style=3D'font-size:10.0pt;
font-family:Arial'>Thank you,



style=3D'font-size:10.0pt;
font-family:Arial'>~Annette



size=3D3
face=3D"Times New Roman">






Roman"> style=3D'font-size:10.0pt;color:navy'>Annette Curtis – Sr. =
Information
Analyst



Roman"> style=3D'font-size:10.0pt;color:navy'>Database Manager



Roman"> style=3D'font-size:10.0pt;color:navy'> ace>University
of Rochester



Roman"> style=3D'font-size:10.0pt;color:navy'>255 Crittenden Blvd. =



Roman"> style=3D'font-size:10.0pt;color:navy'>Rochester, New York =
14620



Roman"> style=3D'font-size:10.0pt;color:navy'>School of =
Nursing –
HWH 3W-324



Roman"> style=3D'font-size:10.0pt;color:navy'>office: (585) 275-5398

href=3D"mailto:annette_curtis@urmc.rochester.edu">annette_cu rtis@urmc.roc=
hester.edu



style=3D'font-size:
12.0pt'> 









------=_NextPart_000_77fa73b8_34beda0.5093--

Re: ODBC Upgrades

am 04.05.2007 16:56:10 von Dave Page

Curtis, Annette M wrote:
> Currently I have 08.00.0101 installed as PSQLODBC dated 03/05/2005.
> Whenever I attempt to use the MSI installation of any of the later
> versions this dll does not upgrade and nor does it install the latest
> version of the MSI either.

No, it will only upgrade from an early revision - ie. 08.00.0101 ->
08.00.0400. Uninstall the old driver first, and then install the new one.
>
> I am currently running PostgreSQL ver. 8.2.x which was just upgraded
> from 7.4.x this week. I was able to reload the entire client for PgAdmin
> and it works successfully.
>
>
>
> However, I am unable to update the ODBC file and currently have users
> who are unable to access there databases since I am unable to update the
> ODBC client from the MSI installation. The majority of the users are on
> WinXP a few are still on Win2K.

Why are they unable to connect? The driver is backwards compatible with
older servers, and the server is backward compatible with the older clients.

Regards, Dave.

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Re: ODBC Upgrades

am 04.05.2007 17:02:45 von Annette_Curtis

Dave,

When I uninstall the old driver and install the newer driver it is not
available in admin tools data sources as a driver to select from to
configure any type of DSN. In addition, when I have attempted to use the
newer MSI packages to install the ODBC it registers in the local machine
but not the current user. Any thoughts?

Thank you for your support.

_____

Annette Curtis - Database Manager
University of Rochester School of Nursing
office: (585) 275-5398
annette_curtis@urmc.rochester.edu
-----Original Message-----
From: Dave Page [mailto:dpage@postgresql.org]=20
Sent: Friday, May 04, 2007 10:56 AM
To: Curtis, Annette M
Cc: pgsql-odbc@postgresql.org
Subject: Re: [ODBC] ODBC Upgrades

Curtis, Annette M wrote:
> Currently I have 08.00.0101 installed as PSQLODBC dated 03/05/2005.=20
> Whenever I attempt to use the MSI installation of any of the later=20
> versions this dll does not upgrade and nor does it install the latest=20
> version of the MSI either.

No, it will only upgrade from an early revision - ie. 08.00.0101 ->=20
08.00.0400. Uninstall the old driver first, and then install the new
one.
>=20
> I am currently running PostgreSQL ver. 8.2.x which was just upgraded=20
> from 7.4.x this week. I was able to reload the entire client for
PgAdmin=20
> and it works successfully.
>=20
>
>=20
> However, I am unable to update the ODBC file and currently have users=20
> who are unable to access there databases since I am unable to update
the=20
> ODBC client from the MSI installation. The majority of the users are
on=20
> WinXP a few are still on Win2K.

Why are they unable to connect? The driver is backwards compatible with=20
older servers, and the server is backward compatible with the older
clients.

Regards, Dave.

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Re: ODBC Upgrades

am 04.05.2007 18:12:25 von Dave Page

Curtis, Annette M wrote:
> Dave,
>
> When I uninstall the old driver and install the newer driver it is not
> available in admin tools data sources as a driver to select from to
> configure any type of DSN. In addition, when I have attempted to use the
> newer MSI packages to install the ODBC it registers in the local machine
> but not the current user. Any thoughts?

Those two statements seem somewhat contradictory. It always installs
itself on a per-machine basis so thats not surprising, but how do you
know it's registered for the current machine if it's not listed in the
DM dialogues?

Regards, Dave.

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Re: ODBC Upgrades

am 07.05.2007 09:31:56 von Dave Page

Curtis, Annette M wrote:
> That's what I am saying it only shows under local machine and not the
> current user so that's why its not available in the Data Sources
> dialogues.

Shows where under 'local machine'? The ODBC driver manager shows the
registered drivers in a single list so you cannot distinguish between
those registered per user or on the system. The *DSNs* are shown
seperately, but they're a different matter altogether.

> Also, what I discovered is that the name of the driver has changed to
> accommodate ANSI and Unicode by doing this the driver will never update
> but just create a new registration as noted by the local machine and not
> the current user.

No, that's why the change was made in a major version change.

> When I renamed the Unicode driver to the old file name of PSQLODBC from
> 8.0.1 it worked and now registers as an available data source to the
> current user.
>
> However, please note that I would not want to go around to 200 plus
> machines and rename the driver and place it in the registry manually as
> I had to do to get this to work. There needs to be a better solution for
> the upgrade of the ODBC from previous versions based on when a user
> downloaded the original drivers from the Postgres site.

If you're doing that sort of work manually you should really reconsider
your management methods - thats the sort of thing Group Policy is for.
Not that you should need to rename anything anyway.

So, please clarify - you uninstall the 8.0 driver:

- Does it get removed from the list of available drivers in the driver
manager?

- Is it still listed in the registry under
HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI ?

You then install the 8.2 drivers:

- Are they listed under HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI ?

- Are thy listed in the list shown by the driver manager?

Regards Dave


---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Re: ODBC Upgrades

am 08.05.2007 09:47:59 von Dave Page

[Please keep replies on-list]

Curtis, Annette M wrote:
> Dave,
>
> HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI still shows the 8.0 driver
> even after uninstalling.

OK - in that case, please remove the PostgreSQL key as well as the
value: HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI\ODBC Drivers\PostgreSQL

>
> HKEY_CURRENT_USER\SOFTWARE\ODBC\ODBCINST.INI does not register any of
> the drivers at all. (8.0 or 8.2)

As I said previously, it's not supposed to.

> When I install the 8.2 driver it shows in the local machine but not
> current user. Regardless of where it shows it is not available as a
> choice in the driver manager through DSN. See the picture below showing
> the 3 different folders that were registered. The first one was created
> with the 8.0 driver; the other two with the 8.2 driver. This picture is
> from the local machine directory which is not available in the driver
> manager DSN.
>
>
> Only by renaming this driver through safe mode from psqlodbc35w.dll back
> to psqlODBC.dll did it finally change the version number and allow me to
> see it in the drivers list. See picture.
>

Did you copy the DLL from the installation directory? We intentionally
don't install into C:\Windows\System32 any more to avoid possible
conflicts with other software that might have installed SSL or Kerberos
libraries. Please uninstall the 8.2 driver, and remove any registry
entries for it that might remain (there shouldn't be any, but if you've
moved files around, that installer database will no longer reflect
reality so it might not fully remove everything), then try reinstalling
using the default install location etc.

Regards, Dave.

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster