Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to list tables in access database? #215

Open
mwiertz opened this issue Mar 17, 2022 · 3 comments
Open

How to list tables in access database? #215

mwiertz opened this issue Mar 17, 2022 · 3 comments

Comments

@mwiertz
Copy link

mwiertz commented Mar 17, 2022

Hi,

I'm trying to retrieve a list of tables from an MS Access mdb database file from Python using JayDeBeApi combined with UCanAccess. Querying the database works fine, though I cannot find out how top list all tables. I've been googling and trying for days now, but was not able to find a solution.

Anyone can help?

Thanks, best,
Max

@deweydb
Copy link

deweydb commented Nov 1, 2023

Did you ever figure this out? stuck on the same thing.

@mwiertz
Copy link
Author

mwiertz commented Nov 1, 2023

Unfortunately, no. Ended up working around it by converting the databases to sqlite... Bit drastic to do over and over again, but couldn't find another solution.

@deweydb
Copy link

deweydb commented Nov 2, 2023

I figured it out:
select * from information_schema.tables
It seems ucanaccess actually "copies" the original .mdb to an hsqldb one at connection time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants