A user wants to generate a custom report using a SQL query.
If you need to run a query directly on an ArchivesSpace database, you can use Microsoft Excel to pass the MySQL query without having to pre-load the tables.
You will need a Read-Only MySQL account and password (usually created by your hosting provider or if locally hosted your database administrator), Microsoft Excel with Power Query installed, and the ADO.NET Driver for MySQL (Connector/NET) installed on the local machine. You may need a local administrator account on your machine to install the supporting items listed above.
- Launch Microsoft Excel (you’ll need at least a version that supports Power Query
- Select the Data tab and then Get Data | From Database | From MySQL Database (Some versions of Excel have New Query | From Database instead)
- On the MySQL database screen that appears, select the Advanced options, and complete the form by entering the Server IP, the database name (archivesspace), a Command timeout in minutes value, the SQL select statement/query, and the default ‘Include relationship columns’ left checked. Then click OK.