A basic Monitor Client Library application:
Defines error handling.
Connects to a server using the following steps:
Allocates a connection.
Sets properties on a connection.
Connects to a server.
Creates one or more views that define the performance data to be monitored.
Optionally, targets specific performance data values with filters.
Optionally, sets alarms on performance data values.
Requests performance data values.
Processes the results.
Closes the connection to the server.
Deallocates the connection or reuse it by reconnecting.
You must have the System Administrator role on Adaptive Server or execute permission on the stored procedure mon_rpc_connect to perform monitoring.