Linked Tables refer to previous ODBC connection parameters

S

steve.dempsen

I am using Microsoft Access 2003 as an .mdb file with a Sybase ODBC
driver to create linked tables.

PROBLEM SUMMARY:
When I change the ODBC System DSN connection information to point to a
new database, the linked tables in Access still point to the previous
database. It appears that when initially creating the linked table,
the connection information (host, port, database name) is copied from
the ODBC connection and embedded within the linked table.

QUESTION:
- Is it possible to get the linked table to always use the connection
information from the ODBC DSN and not embed the information when it is
first created?

DETAILS:
- In development, I create a System DSN ODBC connection pointing to the
development database. Then, I create a linked table to a table within
that ODBC database DSN.
- Once development is complete, it is time to move to the test
environment. I send the Access .mdb file to the tester and provide
instructions to create the ODBC DSN connection(substituting the test
database information where the development database information used to
be).
- I would expect the linked table within Access to refer to the name of
the ODBC connection, and then get the database connection information
from there.
- After the tester creates the ODBC DSN on his/her machine and opens
Access, the linked table still points to the development database!
- It appears the database connection information remains embedded
inside the linked table and is not referenced from the ODBC DSN on the
machine.

Thanks in advance for any information.
 
G

Guest

The only thing that comes to mind that can solve this is to write a function
that re-attaches the tables every time you want to refresh the links. You
begin by deleting the current attachments then re-attach. It takes seconds to
reattach. Yes, the info is embedded in the linked table.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top