Property Editor: Action 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 to automate the process.
To create an ACTION query on one or more database tables:
- In the Configuration Manager, right-click on the User Interface| Queries | Action Queries node of the navigation tree and select New | Action Query from the menu.
- If more than one database is configured, select the database you want to query.
- Enter the general properties (Name, Description and Run on Server) of the query you are creating.
- To select or build the SQL query, click on the Configuration tab.
- 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.
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).
Micromine Geobank supports the running of action queries in Unattended Mode. When in Unattended mode, queries automatically start and automatically close when complete. In Unattended mode, when tasks have been completed, Micromine Geobank will automatically close.