“is not an existing data source name”

Nov 22

Today, I was troubleshooting an in-house application for a user. I was getting the below error “is not an existing data source name” when I click Configure for one of the DSN e.g. Campaign. I tried to removing it by clicking the Remove but it doesn’t work either.

2008-01-27_054640.gif
Fig 1.1

I realised campaign appear as a “String Value” in “ODBC Data Sources” Key but not as a “Key” in the “ODBC.INI” Key. Look under HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources in your registry editor (You can type “regedit” without the quote in your Start -> Run to launch your registry editor).

2008-01-27_063824.gif
Fig 1.2 (On the right column of regedit, you see Campaign “String Value”)

What do I mean not as a key? Compare Fig 1.3 and Fig1.4 to see what I actually meant here.

A corrupted DSN
2008-01-27_060044.gif
Fig 1.3 (Campaign is not inside)

A proper DSN
2008-01-27_062701.gif
Fig 1.4 (You should see Campaign)

Solution:
You need to remove campaign “String Value” from the “ODBC Data Sources” Key under HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources. (You need not to restart to your computer after removing)

2008-01-27_060234.gif
Fig 1.5

Now you should be able to recreate the campaign in your Administrative Tool -> Data Sources (ODBC). Did you realiase campaign is now being created properly as a “Key” under “ODBC.INI” and as a “String Value” under ODBC Data Sources in Fig 1.6.

2008-01-27_062829.gif
Fig 1.6

2 comments

  1. Shaun /

    Thanks, this was very helpful, I had the same problem on my cluster, it seemed that by adding the odbc’s to the first node, it incorrectly replicated to the second node.

  2. nirav /

    if u still getting problem check your right to access the odbc

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>