TL 0601
TL 0601
Toolset Database
Reporter
User Guide
Copyright, Notice, and Trademarks
Honeywell, TotalPlant, Uniformance, and Business.FLEX are U.S. registered trademarks of Honeywell Inc.
Other brand or product names are trademarks of their respective owners.
Release Information
Uniformance 150
Revision 1
Revision Date: July 30, 1999
Document Number: TL-060.1
Honeywell Inc.
Industrial Automation and Control
Automation College
2820 West Kelton Lane
Phoenix, AZ, 85023-3028
Contents
Copyright, Notices, and Trademarks ii
Release Information ii
Forms 7
SQL Query Configuration 7
Configuration Procedure 11
SQL Query Configuration 11
Database Reporter 12
Configuration Sources 13
SQL Query Configuration 13
Database Reporter 13
Glossary 15
Index 17
The Database Reporter is used to query and report data stored in the Relational
Database Management System (RDBMS). The Database Reporter consists of the
following two components:
Component Description
SQL Query SQL Query Definition is a tool used to define and save
SQL queries. SQL queries can be executed interactively
or used as part of a report defined through the DB
Reporter.
DB (Database) Reporter The DB Reporter groups multiple queries defined through
the SQL Query Builder. With the DB Reporter you can
query output to browse interactively, print, and optionally
save to a file.
Forms
Test Query Execute the query and display the results on the tabular
format providing the ability to test the logic of the query
and detect any syntax errors.
Enter Query Search for any SQL Query Configurations stored within the
database.
The following fields appear on the SQL Query Configuration form. The asterisk (*)
indicates mandatory fields.
In this field… Do this…
*Query Name Indicate the name of the query.
Owner Name Indicate the system-generated name of the user who
created the query. You cannot edit this field.
*Description Enter a brief description of the query.
*SQL Statement Enter the SQL Select statement. The statement may span
multiple lines. There is no validation of this field until the
SQL Statement is executed with the Test SQL button.
The following fields appear on the Database Reporter form. The asterisk (*) indicates
mandatory fields.
In this field… Do this…
Report Name Indicate the report name.
Owner Name Indicate the system-generated name of the user who
created the record. This field is read-only.
Title Indicate the title that appears on the report or extract.
Sub Title Indicate the sub-title that appears on the report or extract.
X Axis Indicate the label for the X Axis for the extract.
Y Axis Indicate the label for the Y Axis for the extract.
*Format Indicate the type of output file format. The Lookup
Configuration information with a lookup type of EXTFMT
provides validation.
Output File Indicate the name of the output file. Used if the report is
executed from this form.
*Query Indicate the name of the query to be executed. The SQL
Query Configuration information provides validation.
*Seq Indicate the execution sequence of the query list.
Configuration Procedure
Database Reporter
The Database Reporter form allows you to define reports and file extracts using
queries set-up in the SQL Query form.
To define a report:
1. Choose the Form: Database Reporter from the Database Reporter menu.
2. Select the Report Name field and enter a unique report name.
3. Select the Format field and select the value form the list. The Lookup
Configuration information with a lookup type of EXTFMT provides validation.
4. Select the Seq field and enter the unique sequence number for the entry.
5. Select the Query Name and select the query name. The SQL Query Definition
information provides validation.
The following fields are optional on the form. You may enter these fields depending
on your preferences.
In this field… Do this…
Title Identify the text to appear in the report title of the report or
extract output.
Sub-Title Identify the text to appear as the report sub-title of the
report or extract.
X Axis Identify the X Axis label for extract reports.
Y Axis Identify the Y Axis label for extract reports.
Output File Identify the output file path. This path is required when you
initiate the report using the Execute Report button located
in the title bar of the form.
Owner Name Identify the user name that will be saved when you save
the entry to the database.
Configuration Sources
Database Reporter
In this field… Do this…
Glossary
query
A Query is a SQL statement, which retrieves data from a relational database and
returns data to the requester. The Select statement is the method in which the data is
queried. For additional information regarding the Select statement, refer to The SQL
Language Reference Guide published by the Rdbms vendor.
SQL
Structured Query Language is the language used to manipulate and retrieve data from
most relational database systems. Retrieval of data is performed using the Select
statement, for example Select* FROM<TABLE_NAME>(where TABLE_NAME is
the name of an actual relational database table). For additional information, refer to a
SQL Language Reference Guide published by the RDBMS vendor.
Index quering
data from the RDBMS 5
names on the SQL query configuration forms 8,
11–13
the SQL query forms 7–13
B
S
building the SQL query 5
saving
SQL queries 5
C
SQL queries
configuring SQL queries 11, 13 configuration 7
fields 13
D
formatting 7, 11
defining
a query to access the relational database 11 U
reports or file extracts 9, 12 understanding
SQL queries 11 fields in the database reporter 13
SQL query configuration 7 the database reporter 5, 9
SQL query forms 7–8 using
forms 7
E
the description field on SQL query 11
executing the test query 7
a report 9–10
from the SQL query form 7 V
interactive SQL queries 5 validating SQL statements 7–9
verifying SQL statements 7, 9
F
fixing syntax and logic errors 11 W
windows
I
database reporter form 9
interactive SQL queries 7, 9 SQL query configuration 8
O
opening the output file 9–10