| Author |
How remove stale DSN ?
|
|
| Andreas 2005-11-09, 8:23 pm |
| 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
| |
| George Weaver 2005-11-09, 8:23 pm |
| ----- 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
>
---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster
| |
| Andreas 2005-11-09, 8:23 pm |
| George Weaver wrote:
> ----- Original Message ----- From: "Andreas" <maps.on@gmx.net>
>
>
>
> 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
| |
| Hélder M. Vieira 2005-11-09, 8:23 pm |
|
>
> 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
---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster
| |
| Andreas 2005-11-09, 8:23 pm |
| Hélder M. Vieira wrote:
>
>
> 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
---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings
| |
| Zahid Khan 2005-11-10, 3:23 am |
|
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.
| |
| Dave Page 2005-11-10, 3:23 am |
|
> -----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:
>
> 2000's DSN
>
> 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\S
oftware\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.
---------------------------(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
| |
| Dave Page 2005-11-10, 3:23 am |
|
> -----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
---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match
| |
| Greg Campbell 2005-11-10, 9:23 am |
| 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\S
OFTWARE\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:
>
>
>
> 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
| |
|
| 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
---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings
|
|
|
|