You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

You can query the database to get a custom usage report. The table reference to the MySQL database is stored in mysql/database_structure.sql.

To make a SQL query, click Administration at the top of the License Statistics web page. From this page, click the SQL Console tab.

Enter your custom SQL query in the edit box and click Submit to generate the report. The Custom SQL Report appears in the area below the Custom SQL Query edit box. Query results will be returned in a grid, as shown in the example below, only if you enter a SELECT query.

You can export the data returned from the query by clicking on one of the Download options at the top right of the Custom SQL Report. For example, you may want to view the report in Excel or PDF so you can include it in a report or presentation. See Downloading License Statistics data for more information about obtaining data in various formats.

Warning: Use caution when running queries that use UPDATE or DELETE keywords, because using these keywords can cause data loss or corruption.

You can save SQL queries under the Saved Reports area so that you can easily run the query in the future.

To save a query for future use:

  1. Click Add New under the Saved Reports area.
  2. Enter a name for your report in the Report Name field.
  3. Enter the SQL query in the SQL query field.
  4. Click Save to save the query.
  5. To run the saved query, click on it in the Saved Reports list. The query appears in the Custom SQL Query area. Click Submit to submit the query.

You can also save a query as a CSV, Excel, PDF or SQL file using Save As in the Saved Reports area. After selecting the format to which to save the file, you are prompted to either open or save the file.

  • No labels