Opening ESRI Personal Geodatabases in QGIS

In the more recent 64-bit versions of QGIS it is no longer possible to open ESRI personal geodatabases using the 'Add vector layer' functionality. However, it is possible to enable access to personal geodatabases by doing the following:

  1. Download the 64-bit version on the MS Access ODBC driver (AccessDatabaseEngine_x64.exe): http://www.microsoft.com/en-gb/download/details.aspx?id=13255
  2. If you don’t have 32-bit MS Office installed you can just run the exe, however if you do have 32-bit office installed then you need to start an admin command prompt and run the installer in passive mode as follows:
AccessDatabaseEngine_x64.exe /passive
  1. Then you need to edit the qgis-ltr.bat (normally in C:\Program Files\QGIS x.xx\bin, in previous versions used to be qgis.bat) and add the following lines (before the ‘start’ command)
set OGR_SKIP=ODBC
set PGEO_DRIVER_TEMPLATE=DRIVER=Microsoft Access Driver (*.mdb, *.accdb);DBQ=%%s
  1. Now you should be able to start QGIS and simply drag the geodatabase mdb file onto the QGIS workspace and it will open.
Note: This solution has been tested using QGIS v2.14.11 (Essen) 
Note: This post is based on information taken from the web page listed below, however that page was based on an older version of QGIS (2.8.1) which used the qgis.bat file rather than qgis-ltr.bat.

Comments

Pietro

re: Opening ESRI Personal Geodatabases in QGIS

06 May 2018

It seems like you are assuming that the user is on Windows. What if the user is on Linux?

Yuliana

re: Opening ESRI Personal Geodatabases in QGIS

15 June 2018

We have many personal geodatabases, but they contain tables and relationships as well, and the solution only allows the geographic content to be displayed. Do you know how to access these information?

Find out more