Re: How remove stale DSN ? - Mailing list pgsql-odbc

From Dave Page
Subject Re: How remove stale DSN ?
Date
Msg-id E7F85A1B5FF8D44C8A1AF6885BC9A0E4E7DED9@ratbert.vale-housing.co.uk
Whole thread Raw
In response to How remove stale DSN ?  (Andreas <maps.on@gmx.net>)
List pgsql-odbc

> -----Original Message-----
> From: pgsql-odbc-owner@postgresql.org
> [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Andreas
> Sent: 09 November 2005 23:58
> To: George Weaver
> Cc: pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] How remove stale DSN ?
>
> George Weaver wrote:
>
> > ----- Original Message ----- From: "Andreas" <maps.on@gmx.net>
> >
> >> Is there a way to force the removal of DSNs out of Windows
> 2000's DSN
> >> manager ?
> >
> >
> > Have your tried deleting the .dsn files directly (typically in
> > "C:\Program Files\Common Files\ODBC\Data Sources")?
>
> No because I didn't know of them.
> Now I checked but this directory is empty. There aren't any
> *.dsn files
> on C: at all.
> Probaply this stuff is stored somewhere in the registry.   =8-{

It is. Check under HKEY_LOCAL_MACHINE\Software\ODBC\ODBC.ini. There's a
key for each DSN which contains the config values. Just delete the key.
Also, there will be a single value corresponding to each DSN under the
'ODBC Data Sources' key. Delete that as well. User DSNs are in the same
place, but under HKEY_CURRENT_USER.

Hack your registry at your own risk. Backup first. Etc. etc.

Regards, Dave.

pgsql-odbc by date:

Previous
From: Zahid Khan
Date:
Subject: Re: How remove stale DSN ?
Next
From: "Dave Page"
Date:
Subject: Re: Invisible tables in Access 2000