Query To find Table Connection String (1 Viewer)

TallMan

Registered User.
Local time
Today, 13:35
Joined
Dec 5, 2008
Messages
239
Hello -

I am using the following query to pull a list of all tables in my database that are connected using an ODBC connection:

PHP:
SELECT MSysObjects.DateCreate, MSysObjects.DateUpdate, MSysObjects.Name, MSysObjects.Type
FROM MSysObjects
WHERE (((MSysObjects.Type)=4));

I need to take this to the next step and be able to find out where the tables are linking to. Essentially, what their connection string is. (Server/Database)

Does anyone know if this is possible? This would be a HUGE help!!!

Thank you in advance for your time!

TallMan
 

vbaInet

AWF VIP
Local time
Today, 18:35
Joined
Jan 22, 2010
Messages
26,374
MSysObjects has a Connect field so all you need to do is go back to your query and include that field there. But note, if you created a Pass Through query it won't show the connect string but linked tables are fine.
 

TallMan

Registered User.
Local time
Today, 13:35
Joined
Dec 5, 2008
Messages
239
All -

This works like a charm. Exactly what I needed.
Thank you very much for your time!

Tallman
 

Users who are viewing this thread

Top Bottom