
Figure: Monitor window showing result as charts
The chart customization is covered in the chart document.
Figure: The Scripts tab with Monitors

Figure: Monitor window showing the result in Grid format
The interesting columns in the result are the Month and Count. The Year and MonthNum are there just to get the correct ascending order of the result.| PollTime | RowCount |
|---|---|
| 2003-01-23 12:19:10 | 43123 |
| 2003-01-23 12:11:40 | 43139 |
| 2003-01-23 12:21:10 | 43143 |
| 2003-01-23 12:22:40 | 43184 |
| ... | ... |
Figure: Example of the result from a Table Row Count monitor
The SQL for this monitor uses two variables, DbVis-Date and DbVis-Time. These variables are substituted with the current date and time, formatted according to the corresponding Tool Properties settings. The reason for using these variables instead of using SQL functions to retrieve the values is simply that it is almost impossible to get the values in a database-independent way. Another reason is that we want to see the client machine time rather than the database server time. You can, of course, modify the SQL any way you see fit, as long as the PollTime and RowCount labels are not changed.select '${DbVis-Date}$ ${DbVis-Time}$' as PollTime,
count(*) as RowCount
from Computers
Figure: Sample of the SQL for the Table Row Count monitor
DbVisualizer keeps the result for previous executions, up to the specified maximum number of rows, so that you can see how the result changes over time. You define the maximum number of rows in the Max Row Count field in the details area at the bottom of the Scripts tab. This property is initially set to 100 when you use Create Row Count Monitor to create the monitor.
Figure: Details area with the Max Row Count field for a monitored statement
You can change the value to limit or extend the number of rows that DbVisualizer should keep. Setting it to 0 or a negative number tells DbVisualizer to always clear the grid between executions of monitors.| PollTime | RowCount | RowCountChange |
|---|---|---|
| 2003-01-23 12:19:10 | 43123 | 0 |
| 2003-01-23 12:11:40 | 43139 | 16 |
| 2003-01-23 12:21:10 | 43143 | 4 |
| 2003-01-23 12:22:40 | 43184 | 41 |
| ... | ... | ... |
Figure: Example of the result from a Table Row Count Difference monitor
The SQL for this monitor adds a third column, named RowCountChange. It utilizes the fact that DbVisualizer automatically creates variables for the columns in a monitor result set, holding the values from the previous execution. The RowCountChange column is set to the value returned by the count(*) aggregate function for the current execution minus the value from the previous execution, held by the RowCount variable. All columns in a monitor result set can be used like this to reference values from the previous execution of the monitor.select '${DbVis-Date}$ ${DbVis-Time}$' as PollTime,
count(*) as RowCount,
count(*) - ${RowCount||count(*)}$ as RowCountChange
from Computers
Figure: Sample of the SQL for the Table Row Count Difference monitor

Figure: The Monitor window with all monitors organized as tabs
The Monitor window has toolbar at the top with an Auto Reload Interval field and a Adjust box. The rest of the window holds result areas for each monitored statement with the Visible attribute enabled. Each individual monitor result tab or window may also have a toolbar with controls that apply just to that result. The screenshot is from DbVisualizer Pro, with View buttons in the toolbar for the selected monitor; these buttons are not included in DbVisualizer Free.| Toolbar Button | Description |
|---|---|
| Close |
Closes the Monitor window |
| Reload | Reloads all results (i.e., executes all monitors and updates the result sets) |
| Locate
Current |
Locates and select the monitor
node in the Scripts tab corresponding to the currently selected result |
| Clear Current | Clears the currently selected result |
| Clear
All |
Clears all results |
| Show as Tabs | Shows the results as collapsed tabs |
| Show as Windows | Shows the results as tiled tabs |
| Show
Grids |
Shows all results as grids |
| Show
Text |
Shows all results as text |
| Show
Chart |
Shows all results as graph in the selected chart type |
| Show/Hide
Chart
Legends |
Toggle this to show/hide chart
legends |
| Show/Hide
Monitor
Toolbars |
Toggle this to show/hide
toolbars
for each monitor |
| Start Monitors | Starts auto-update of all monitors, repeatedly executing all statements at the intervals specified by the Auto Reload Interval field |
| Stop Monitors | Stops the auto-update |