How to Sync MS Access and SQLite with DBConvert: Step-by-Step
This guide shows a clear, actionable workflow to sync Microsoft Access and SQLite using DBConvert. It assumes you have DBConvert installed (DBConvert for MS Access & SQLite) and both source and target databases accessible on your machine. Steps below use reasonable defaults so you can run a working sync without extra configuration.
What you need
- DBConvert for MS Access & SQLite installed.
- A Microsoft Access (.mdb or .accdb) file.
- A SQLite database file (.sqlite, .db) or path where a new one can be created.
- Basic Windows file access rights to both files.
Quick overview
- Open DBConvert and create a new project.
- Choose MS Access as source and SQLite as target.
- Configure connections and mapping.
- Select sync mode and schedule (if needed).
- Run a test sync and then execute the full sync.
- Verify results and enable automated sync if desired.
Step 1 — Launch DBConvert and start a new project
- Open DBConvert for MS Access & SQLite.
- Click “New” (or “Create new project”) to start a conversion/synchronization task.
Step 2 — Set source (MS Access)
- For Source DBMS choose Microsoft Access.
- Click “Source” settings:
- Browse and select your .mdb or .accdb file.
- If needed, provide a database password.
- Set appropriate Access driver (usually the default works).
- Click “Test Connection” and confirm success.
Step 3 — Set target (SQLite)
- For Target DBMS choose SQLite.
- Click “Target” settings:
- Browse to an existing .sqlite/.db file or specify a new file path to create.
- Choose SQLite engine/version if prompted (use default unless you have special needs).
- Click “Test Connection” and confirm success.
Step 4 — Choose sync mode and direction
- DBConvert supports different transfer modes:
- Convert (one-time data transfer)
- Sync (bi-directional or one-way synchronization)
- For regular synchronization choose Synchronize.
- Select direction:
- Access → SQLite (one-way from Access to SQLite)
- SQLite → Access (opposite)
- Bidirectional (two-way)
- Default recommendation: Access → SQLite for migrating/replicating Access data into SQLite.
Step 5 — Table selection and mapping
- In the mapping window, select the tables you want to sync.
- Review and adjust field mappings:
- Ensure primary keys are mapped correctly.
- Convert Access data types to compatible SQLite types (DBConvert usually maps automatically).
- Exclude any tables/fields you don’t want to sync.
- Optionally enable row filters or WHERE clauses to limit data transferred.
Step 6 — Dealing with schema differences
- If creating a new SQLite DB, let DBConvert create tables automatically.
- If mapping to an existing SQLite schema:
- Use “Structure Only” or “Structure and Data” modes to align schemas.
- Manually adjust column types or add missing indexes in SQLite if necessary.
- Confirm how NULLs, AUTOINCREMENT, and default values are handled.
Step 7 — Conflict resolution and options (for bidirectional)
- Set conflict rules:
- Source wins or Target wins, or resolve by timestamp.
- Configure how deletions are handled:
- Propagate deletions, ignore deletions, or move deleted rows to a log table.
- Enable logging to capture conflicts and errors for auditing.
Step 8 — Test run (recommended)
- Run a small test:
- Use a subset of tables or enable a row limit filter.
- Inspect target SQLite DB with a SQLite browser (DB Browser for SQLite or similar).
- Confirm data integrity, types, and row counts match expectations.
Step 9 — Run full sync
- After successful testing, run the full synchronization.
- Monitor progress in DBConvert’s log window.
- If errors occur, check the detailed log, correct issues (permissions, schema mismatches), and rerun.
Step 10 — Schedule automated sync (optional)
- If you need recurring syncs, use DBConvert’s scheduling:
- Set frequency: hourly, daily, weekly, or custom.
- Choose run options (e.g., only changed rows).
- Ensure the machine hosting DBConvert remains powered and has access to DB files at scheduled times.
Step 11 — Verification and maintenance
- After each sync, spot-check row counts and key tables.
- Use checksums or sample queries to verify data consistency.
- Periodically review logs and update mapping if schema changes occur in source or target.
Troubleshooting common issues
- Connection fails: check file paths, permissions, and that no other app locks the Access DB.
- Data type mismatches: adjust mappings or alter SQLite schema.
- Primary key conflicts: ensure unique keys exist or use conflict rules.
- Large data sets slow: run initial bulk convert, then use incremental syncs.
Example checklist before production sync
- Backup Access and SQLite files.
- Test connection to both DBs.
- Run a test sync on a small subset.
- Verify primary keys and indexes.
- Configure conflict rules and logging.
- Schedule automated sync if needed.
Leave a Reply