![]() |
Enterprise
RTView®
User Guide |
Attach to SQL Data NOTE: The SQL data source may not be licensed in your Enterprise RTView installation. From the Object Properties window you can access the Attach to SQL Data dialog, which is used to connect an object to your database using an SQL query. Once an object has been attached to your database it receives continuous updates. When an object property is
attached to data, the Property Name and Value in the Object Properties
window will be displayed in green. This indicates that editing this value
from the Object Properties window is no longer possible. To remove the
data attachment and resume editing capabilities in the Object Properties
window, right-click on the Property Name and select Detach from Data.
You will recognize that an object property has been detached from the database
when the Property Name and Value are no longer green.
To bring up the Attach to SQL Data dialog, right-click on the Property Name from the Object Properties window and select Attach to Data>SQL. The Attach to SQL Data dialog provides drop down menus and an optional filter field that allow you to specify information that will be used to create an SQL query for the selected database. Alternatively, select the Enter SQL Query checkbox in order to enter an advanced query. Use the -sqlquote command
line or applet parameter
options to enclose all table and column names specified in the Attach to
SQL Data dialog in quotes when an SQL query is run. This is useful when
attaching to databases that support quoted case-sensitive table and column
names. NOTE: If a case-sensitive table or column name is used in the Filter
field, or you are entering an advanced query in the SQL Query field, they
must be entered in quotes even if the -sqlquote option is specified.
The Database Name drop down menu lists all available databases. The Database Name field automatically displays the name of the default database. If the item you require is not listed, type your selection into the field. A Database Repository file can be used to populate the initial values of drop down menus for Table Name and Column(s). See Application Options for information on how to create a Database Repository file. You can also create a file to exclude tables from the Table Name drop down menu. See SQL Database Connection Setup for details. Otherwise, drop down menus populate based on databases added from the Application Options dialog or those typed directly into the Database Name field. The Filter field is optional and uses standard SQL syntax. NOTE: By default Enterprise RTView will attempt to communicate with your database using a JDBC-ODBC bridge connection that is not password protected. If you are using a direct JDBC connection or a password protected ODBC-JDBC bridge connection, you will need to add your database in Application Options - SQL.
Validation Colors Fields in the dialog change colors according to the information entered. These colors indicate whether or not information is valid. Information entered into the dialog is validated against the selected database or the Database Repository file. See Application Options for information on how to create a Database Repository file. NOTE: Filters and advanced SQL queries are not validated. The following describes the significance
of the Attach to SQL Data validation colors:
*If a database is validated as Unknown, when you click OK or Apply Enterprise RTView will attempt to communicate with it using an ODBC-JDBC bridge connection that is not password protected. If the validation response remains Unknown, see Application Options - SQL for information on how to add a database. NOTE: If you are using a direct JDBC connection or a password protected ODBC-JDBC bridge connection, you will need to add your database in Application Options.
Substitutions
To bring up the Select Columns dialog,
click on the ellipse button To add a column, select an item from the Available Columns list and click on the Add button. If the item you require is not listed, type your selection into the Enter Column Name field. Click the Remove button to delete an item previously added to the Selected Columns list. You can control the order of columns in a table by arranging the items in the Selected Columns list with the Move Up and Move Down buttons. Validation colors
indicate whether selected columns are valid. However, if even one column
selected is invalid the Column(s) field in the Attach to SQL Data dialog
will register as an invalid entry. NOTE: Invalid columns will not update.
The following describes the
Attach to SQL Data dialog commands:
|
|
|