You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

Monitoring the Dataset module you keep track of Database Connections to ensure your data is accessed and updated correctly.

On this page:


Monitoring Datasets

When monitoring the Dataset module, you will monitor the behavior of connected DBs. To execute the monitoring, you will use three methods to ensure the Database is connected you have data access:

  • Is Started: Check if your Database is running.
  • Query Execution Time: Evaluate the Query response time.
  • Connection String: Verifies if the Database is correctly configured.

Is Started

This property indicates if the Dataset is initialized and connected to the Database. You can use it to check if the Dataset is currently running. The code block below shows an example of executing this method using Scripts.

Example
bool isStarted = @Dataset.DB.YourDatabaseName.IsStarted;

Note that the returning value is a boolean. If the received value is true, the Database is initialized and connected.

Query Execution Time

You can measure the execution time of a query by checking the time before and after executing the query. The code block below shows an example of executing this method using Scripts.

Example
DateTime startTime = DateTime.Now; 
@Dataset.Query.YourQueryName.SelectCommand(); 
DateTime endTime = DateTime.Now; 
TimeSpan executionTime = endTime - startTime;

The total execution time will be available on the executionTime variable.

Connection String

You can check the connection string used for the database to ensure it is configured correctly. Use the code available below to execute this monitoring method.

Example
string connectionString = @Dataset.DB.YourDatabaseName.ConnectionString;

Please note that these are just examples, and you will need to replace YourDatabaseName and YourQueryName with the actual names of the database and query you are working on within the platform.


In this section...

The root page @parent could not be found in space v10.

  • No labels