Re: finding location of ODBC source in Access



JASelep wrote:
Is there a way to list/display the source location/properties of an
ODBC link in an Access DB?

An Access MDB was backed-up before a computer was re-imaged
I'm trying to find information on the ODBC source location to
re-establish the links in the restored MDB so it will work

I got this great query from this discussion group to list regular
linked table souces in an access DB

SELECT [Name], Database, ForeignName
FROM MSysObjects
WHERE [Type]=6
ORDER BY [Name];

ODBC DNSs are external to the Access database, so those properties are not
stored anywhere in the database. To get those properties, you have to go to
the Registry of the machine on which those DSNs were created. From the
sounds of it, you are out of luck, unless you can restore a backup of the
Registry that was done before the computer was re-imaged. I don't know
off-hand where the DSN information is stored in the Registry (especially
since this will be OS and OS version-specific), but a quick google search
should reveal it for you.

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


.



Relevant Pages

  • Re: ODBC DSN Connection
    ... It's the location of the ODBC settings in the registry. ... the registry is something that needs to be taken care of. ... >>> Connections, when our IT people said they thought there should be a ...
    (microsoft.public.access.formscoding)
  • Re: Access mdb file
    ... I would use ODBC after creating a System DSN to the access MDB directory. ... There is a topic in the VFP help files called "How to: Set Up an ODBC Data ... > I have a small app that does some reporting from legacy dbf files. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: help !!
    ... > I have created a VB app to create a database in windows registry. ... > ODBC list where all other dbs are listed. ... specifies a given ODBC driver with a particular data source (FoxPro, Dbase, ... When you create a database or datasource in the Registry you probably not ...
    (microsoft.public.vb.enterprise)
  • Re: help !!
    ... > I have created a VB app to create a database in windows registry. ... > ODBC list where all other dbs are listed. ... specifies a given ODBC driver with a particular data source (FoxPro, Dbase, ... When you create a database or datasource in the Registry you probably not ...
    (microsoft.public.vb.general.discussion)
  • Re: help !!
    ... > I have created a VB app to create a database in windows registry. ... > ODBC list where all other dbs are listed. ... specifies a given ODBC driver with a particular data source (FoxPro, Dbase, ... When you create a database or datasource in the Registry you probably not ...
    (microsoft.public.vb.database)