Solved

Where is the link information stored for a table

Posted on 2009-04-08
14
219 Views
Last Modified: 2012-05-06
I have a central database that monitors several other databases - by linking to the tables in those databases.  

Instead of re-linking to each database, which can be slow if others are using it, can I simply change the link source somehow (perhaps MSysObjects or something like that)?
0
Comment
Question by:Andy Brown
  • 5
  • 5
  • 4
14 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 24099427
you can not change the information in the msysobjects table directly.. and i will not ry doing that
0
 
LVL 75
ID: 24099449
In the MSysObjects table:

SELECT MSysObjects.Name, MSysObjects.Connect, MSysObjects.Database
FROM MSysObjects
WHERE (((MSysObjects.Type)=6))
ORDER BY MSysObjects.Name;

You can only change the link via Code, or manually relink.  You cannot directly modify the MSysObjects table.

mx
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 24099455
you can the information from the msysobjects table

select [name],[database] from msysobjects where type=6
0
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 

Author Comment

by:Andy Brown
ID: 24099462
OK - but it just seems really slow when re-linking between other databases (especially if they are in use).
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 24099486
if the link is using odbc,

select select [name],[connect] from msysobjects where type=4

0
 

Author Comment

by:Andy Brown
ID: 24099497
No it's not using ODBC.

So what would happen if I ran an update query based on MX's suggestion to replace the value in the [database] field, with that of the required database?
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 24099511
it won't work..
0
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 250 total points
ID: 24099533
Andrew ... see this:

http://allenbrowne.com/bug-09.html

Scroll down to 'Tables: SubdatasheetName'

Be SURE all tables in the BE are set to None.  Also, in the FE - set that property for the linked tables too.  This simple fix can make the difference between 5 minutes and 30 seconds to link say 30 tables.

mx

0
 

Author Comment

by:Andy Brown
ID: 24099634
That's great advice (as always).

As for the linking to the alternate databases - how would you do it?
0
 
LVL 75
ID: 24099708
"based on MX's suggestion "
That wasn't really a suggestion - just a way to list the connections strings.

"can I simply change the link source somehow"
But that is basically 're-linking' ...

As far as the 'slow' issue ... I would really get that property set to None.  I can't begin to tell you how much that can affect db operation, especially linking. Before I discovered that several years ago ... it use to take 5 minutes at one client to relink (with a new version of the app) 5 minutes.  After I made that change ... 25 seconds.  Cut and dry.

mx
0
 

Author Comment

by:Andy Brown
ID: 24100620
"based on MX's suggestion " - I know

"But that is basically 're-linking" - How would you re-link

"As far as the 'slow' issue ..." -  Genius!!!!
0
 
LVL 120

Assisted Solution

by:Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1) earned 250 total points
ID: 24100866
see this links

Relink tables from different datasources
http://www.mvps.org/access/tables/tbl0012.htm

Relink Access tables from code
http://www.mvps.org/access/tables/tbl0009.htm
0
 

Author Closing Comment

by:Andy Brown
ID: 31568134
Thanks guys - that was some really good information - and as for the link performance the MX post really helped.

Really appreciated.  
0
 
LVL 75
ID: 24109412
Grade:  A - "Thanks guys - that was some really good information - and as for the link performance the MX post really helped.

Really appreciated.  "  

You are welcome ...

mx
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Documents and settings folder 30 78
Combobox row source 2 20
Create a EXCEL FIle from Access Procedure 1 16
Opening forms with an input box 5 21
The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question