[GIS] Connecting QGIS to query on MS Access database

ms accessqgis

Is there a method to connect to an MS Access database file (.mdb) using QGIS?

In particular I need to connect to a query in it.

The database does not have spatial data.

Best Answer

It's possible to connect via ODBC.

  • In windows, start the ODBC Administrator and define your Datasource (Microsoft Access Driver).
  • In QGIS go to Layer/Add Layer/Vector Layer/database: Type=ODBC.
  • Set up a new Connection. Host should be "localhost" if your database is local on your machine. Database Name is the same name you defined before in the ODBC Administrator.
Related Question