Обсуждение: How remove stale DSN ?

Поиск
Список
Период
Сортировка

How remove stale DSN ?

От
Andreas
Дата:
Hi,

I upgraded to PG 8.1 and therfore uninstalled PG 8.0.4 and every older
psqlODBC version from my win2000 "development"  box.

I had several DSNs for playing around that were mostly just there
collecting dust.
Now I find that I can't open their configuration dialog nor can I delete
them because the associated driver isn't there anymore.

Is there a way to force the removal out of Windows 2000's DSN manager ?


Re: How remove stale DSN ?

От
George Weaver
Дата:
----- Original Message -----
From: "Andreas" <maps.on@gmx.net>


> Hi,
>
> I upgraded to PG 8.1 and therfore uninstalled PG 8.0.4 and every older
> psqlODBC version from my win2000 "development"  box.
>
> I had several DSNs for playing around that were mostly just there
> collecting dust.
> Now I find that I can't open their configuration dialog nor can I delete
> them because the associated driver isn't there anymore.
>
> Is there a way to force the removal 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")?

George
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>



Re: How remove stale DSN ?

От
Andreas
Дата:
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-{

Cheers
Andreas

Re: How remove stale DSN ?

От
Hélder M. Vieira
Дата:
>> 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-{



I had the same problem and found a quick and dirty workaround that seems to
work...
I just created a new DSN linked to the new driver and named it exactly as
the old one. I expected some sort of "Invalid name, try another" warning,
but the old DSN was simply overwritten by the new one.
I don't recommend this kind of tricks, but when one is really desperate...


Helder M. Vieira





Re: How remove stale DSN ?

От
Andreas
Дата:
Hélder M. Vieira wrote:

>> Probaply this stuff is stored somewhere in the registry.   =8-{
>
>
> I just created a new DSN linked to the new driver and named it exactly
> as the old one. I expected some sort of "Invalid name, try another"
> warning, but the old DSN was simply overwritten by the new one.
> I don't recommend this kind of tricks, but when one is really
> desperate...

There are things in this world that make you wonder ...

Thanks !
It aparently worked :)

... Andreas

Re: How remove stale DSN ?

От
Zahid Khan
Дата:

Hi,
Yes i think you can try removing your DSN from "C:\WINDOWS\ODBC.INI"
 
Thx
Zahid Khan

Andreas <maps.on@gmx.net> wrote:
Hi,

I upgraded to PG 8.1 and therfore uninstalled PG 8.0.4 and every older
psqlODBC version from my win2000 "development" box.

I had several DSNs for playing around that were mostly just there
collecting dust.
Now I find that I can't open their configuration dialog nor can I delete
them because the associated driver isn't there anymore.

Is there a way to force the removal out of Windows 2000's DSN manager ?


---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings


Yahoo! FareChase - Search multiple travel sites in one click.

Re: How remove stale DSN ?

От
"Dave Page"
Дата:

> -----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.

Re: How remove stale DSN ?

От
"Dave Page"
Дата:

> -----Original Message-----
> From: pgsql-odbc-owner@postgresql.org
> [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Dave Page
> Sent: 10 November 2005 08:21
> To: Andreas; George Weaver
> Cc: pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] How remove stale DSN ?
>
>
> Also, there will be a single value corresponding to each DSN under the
> 'ODBC Data Sources' key. Delete that as well.

Let me clarify that - delete the single value, not the entire ODBC Data
Sources key.

Regards Dave

Re: How remove stale DSN ?

От
"Greg Campbell"
Дата:
Regedit
\HKEY_LOCAL_MACHINE\SOFTWARE\ODBC
ODBC.INI contains data source names/DSNs - corresponding to the ODBC Administrator SYSTEM DSN tab
ODBCINST.INI contains driver versions registrations

\HKEY_CURRENT_USER\SOFTWARE\ODBC --or-- \HKEY_USER\%user_id_key%\SOFTWARE\ODBC
ODBC.INI contains data source names/DSNs  - USER

At the momemnt I cannot remember if other registry keys are involved so this information definitely comes
with no implied warranties.



Andreas wrote:

> 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-{
>
> Cheers
> Andreas
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
>       subscribe-nomail command to majordomo@postgresql.org so that your
>       message can get through to the mailing list cleanly

Вложения

Re: How remove stale DSN ?

От
"P.M"
Дата:
Yes, go to registry

in HKLM there are 2 keys ODBC and ODBC.INI,
just check there.

HTH,
Maileen

--- Andreas <maps.on@gmx.net> wrote:

> Hi,
>
> I upgraded to PG 8.1 and therfore uninstalled PG
> 8.0.4 and every older
> psqlODBC version from my win2000 "development"  box.
>
> I had several DSNs for playing around that were
> mostly just there
> collecting dust.
> Now I find that I can't open their configuration
> dialog nor can I delete
> them because the associated driver isn't there
> anymore.
>
> Is there a way to force the removal out of Windows
> 2000's DSN manager ?
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 5: don't forget to increase your free space map
> settings
>




__________________________________
Start your day with Yahoo! - Make it your home page!
http://www.yahoo.com/r/hs