How remove stale DSN ?

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

How remove stale DSN ?

От:
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 ?

Re: How remove stale DSN ?

От:
George Weaver <gweaver@shaw.ca>
Дата:
----- Original Message ----- 
From: "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 ?

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 <maps.on@gmx.net>
Дата:
George Weaver wrote:

> ----- Original Message ----- From: "Andreas" 
>
>> 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 <hmv@mail.telepac.pt>
Дата:

>> 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 <maps.on@gmx.net>
Дата:
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 <khanzahid235@yahoo.com>
Дата:

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" <dpage@vale-housing.co.uk>
Дата:
 

> -----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" 
> >
> >> 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" <dpage@vale-housing.co.uk>
Дата:
 

> -----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" <greg.campbell@us.michelin.com>
Дата:
Вложения:
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" 
>>
>>> 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" <pmdanger@yahoo.com>
Дата:
Yes, go to registry

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

HTH,
Maileen

--- Andreas  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
FAQ