In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Read some specific tables from access DB

TarunaT
8 - Asteroid

Hi,

 

I have few mdb files with multiple tables in it. However, I wanted to read one specific table "Host" from all the files. I am able to do that, but its throwing me an error wherever that table is not existing. I want to ignore the files which does not have "host" table. How can I do that? Please help.

3 REPLIES 3
Thableaus
17 - Castor
17 - Castor

Hi @TarunaT 

 

Have you tried to use a Directory Tool + Dynamic Input Tool?


Cheers,

danilang
19 - Altair
19 - Altair

Hi @TarunaT 

 

Check out this post specifically the solution that mentions to query the MSysObjects table.

 

SELECT MSysObjects.Name AS table_name
FROM MSysObjects
WHERE (((Left([Name],1))<>"~") 
        AND ((Left([Name],4))<>"MSys") 
        AND ((MSysObjects.Type) In (1,4,6)))
order by MSysObjects.Name 

 

You can run this against each of the mdbs and if the table name is not in the list, then skip this file

 

Dan

 

Dan

TarunaT
8 - Asteroid

Thanks @danilang , it showed me the way to do it !

Labels
Top Solution Authors