This tool converts Microsoft Access .accdb to a SQLite .db, exporting all tables and logging the conversion process.
- Converts all tables in a
.accdbfile to a single.sqlitedatabase - Uses
pyodbcto read from Access andpandasto write to SQLite - Logs each step of the process with timestamps
- Works on Windows only (requires Access Database Engine)
- Windows OS
- Python 3.7+
- Microsoft Access Database Engine
Clone the repo and install dependencies:
git clone https://github.com/bofethe/access-to-sqlite.git
cd access-to-sqliteOpen a terminal with an activated python environment containing the libraries listed in requirements. If you need to install these, run the following:
pip install -r requirements.txtRun the following line with the relative or absolute paths to you Access database and the desired output for the SQLite database.
python main.py INPUT.accdb OUTPUT.sqliteUpdate the lines 11 and 12 in main with the relative or absolute paths to you Access database and the desired output for the SQLite database. For clarification, both lines are maked with #NOTE. Run the script.
A detailed event log is saved in the root folder in conversion.