# Cannot open my "testfile.gramps" file with SQLiteStudio

**URL:** <https://gramps.discourse.group/t/cannot-open-my-testfile-gramps-file-with-sqlitestudio/3413>\
**Category:** Help\
**Created:** [March 16, 2023, 6:22pm UTC](https://gramps.discourse.group/t/cannot-open-my-testfile-gramps-file-with-sqlitestudio/3413 "2023-03-16T18:22:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick51](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick51/32/2657_2.png) [@nick51](https://gramps.discourse.group/u/nick51)\
**Post date:** [March 16, 2023, 6:22pm UTC](https://gramps.discourse.group/t/cannot-open-my-testfile-gramps-file-with-sqlitestudio/3413/1 "2023-03-16T18:22:05Z")

</div>

GrampsAIO64-5.1.3-2 on Windows 10  
For the sake of curiosity, I am trying to open a gramps file using SQLiteStudio .3.4.3  
I get error ‘[19:54:00] Could not add database E:/Genealogy/TEST-SQLITE/testfile.gramps: file is not a database’  
In Gramps Dashboard / Manage Family Trees, the gramps file is listed as Database Type SQLite.  
I can open other \*.sqlite databases using SQLiteStudio.  
Can someone please tell me what I am doing wrong?  
Thanks

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [March 16, 2023, 7:07pm UTC](https://gramps.discourse.group/t/cannot-open-my-testfile-gramps-file-with-sqlitestudio/3413/2 "2023-03-16T19:07:54Z")

</div>

The files with `.gramps` file extensions are generated by exporting or triggering the backup feature. This is a stable data exchange format in gzip compressed XML — not the database file. Database files are necessarily fragile things since they are in continuous change as they track each touch of the data… but they are fast. So Gramps uses database files as working files.

The working database files (typically in SQLite format beginning with Gramps 5.1 and BSDDB before that) have a path set in the [Family Tree](https://www.gramps-project.org/wiki/index.php/Gramps_5.1_Wiki_Manual_-_Settings#Family_Tree) tab of Preferences. Each database (Tree) has its own folder with a generated unique name. Within the folder are the database files plus a couple text files: `name.txt` (with the human-friendly & readable Tree name) and `database.txt` (which identifies the database engine).

Note that database files in Gramps 5.1 still use pickled Blobs. Pickled Blobs are a relic of the BSDDB implementation and targeted to be phased out … they complicate use of external database tools. Direct editing of the database file with an external tool is NOT recommended.

The [Data Model diagram](https://www.gramps-project.org/wiki/index.php/Gramps_Data_Model) is on the wiki.

---

<div class="post-metadata">

**Author:** ![anon9092048](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@anon9092048](https://gramps.discourse.group/u/anon9092048)\
**Post date:** [March 16, 2023, 9:17pm UTC](https://gramps.discourse.group/t/cannot-open-my-testfile-gramps-file-with-sqlitestudio/3413/3 "2023-03-16T21:17:21Z")

</div>

> [@nick51](#):
>
> Can someone please tell me what I am doing wrong?

While accessing the main SQLite database has issues you could try installing the [Addon:SQLite Export Import](https://gramps-project.org/wiki/index.php/Addon:SQLite_Export_Import) (note that: This pair of addons are used together and do not provide generic SQL support for import from an unknown format. )

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [March 16, 2023, 10:53pm UTC](https://gramps.discourse.group/t/cannot-open-my-testfile-gramps-file-with-sqlitestudio/3413/4 "2023-03-16T22:53:59Z")

</div>

If you are comfortable doing direct database interactions, you _probably_ want to try the Isotammi add-on: [SuperTool](https://www.gramps-project.org/wiki/index.php/Addon:Isotammi_addons#SuperTool).

An introductory task using SuperTool can be found in the “[Tree vivisection experiments with the Isotammi SuperTool](https://gramps.discourse.group/t/tree-vivisection-experiments-with-the-isotammi-supertool/1621)” thread.

(The most [straighforward Installation](https://www.gramps-project.org/wiki/index.php/Addon:Isotammi_addons#Installation) requires briefly redirecting the [**Third party addons management**](https://gramps-project.org/wiki/index.php/Gramps_5.1_Wiki_Manual_-_Settings#Third_party_addons_management) in Preferences to look at the Isotammi Project’s addon server. In Gramps 5.2 and newer, the [Addon Manager](https://gramps-project.org/wiki/index.php/Gramps_5.2_Wiki_Manual_-_Navigation#Using_the_Addon_Manager) allows checking multiple collections of addons.)
