Solved

Where is the link information stored for a table

Posted on 2009-04-08
14
216 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 119

Expert Comment

by:Rey Obrero
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 119

Expert Comment

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

select [name],[database] from msysobjects where type=6
0
 

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 119

Expert Comment

by:Rey Obrero
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 119

Expert Comment

by:Rey Obrero
ID: 24099511
it won't work..
0
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.

 
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 119

Assisted Solution

by:Rey Obrero
Rey Obrero 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

In Debugging – Part 1, you learned the basics of the debugging process. You learned how to avoid bugs, as well as how to utilize the Immediate window in the debugging process. This article takes things to the next level by showing you how you can us…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now