Property Editor: Select Query

In Micromine Geobank, you can configure SELECT queries and ACTION queries. As the name suggests, a SELECT query is a SQL script that uses a SELECT statement to generate a result set. An ACTION query is a query which performs an action (i.e. an UPDATE or an INSERT) on the database and does not return a result set.

In the Configuration Manager, you can define the properties of a query object, enter an SQL statement manually, or use the Active Query Builder tool to automate the process.

To create a SELECT query on one or more database tables:

  1. In the Configuration Manager, right-click on the User Interface| Queries | Select Queries node of the navigation tree and select the New | Select Query option from the menu.
  1. If more than one database is configured, select the database you want to query.
  1. Enter the general properties (Name, Description, Read Only and Run on Server) of the query you are creating.
  2. Select the Read only option if you want to disallow editing of the SQL result set.

    Run on server

    Running on the PC requires that all data is stored in memory. This can cause crashes when dealing with large datasets (e.g. over 1 Gbyte)

    The "Run on Server" option allows the data to be broken into manageable chunks. Each chunk of data is verified as it is received, so the process is more reliable.

    There is an increased "per record" fetch time, so tasks like importing and exporting data will run slower.

    Treat as Dynamic dataset

    This is used if the Query may return different column names each time it is run (This may apply to Assay results shown for a set of downhole intervals).

  1. If you need to prompt the user for values when running queries, Substitution Parameters (for example HOLE_ID = '?Enter the Hole ID?') can be inserted.
  2. To select or build the SQL query, click on the Configuration tab.
  3. To configure the messages to be shown, or the scripts to be executed, when the task form is opened or closed, click on the Events tab.

Property Editor: Column