Solutions
...
Litmus Production Record Datab...
Interacting with Litmus Produc...
Reading out the Log Table for the asynchronous background query execution
7min
use cases to ensure the supportability and sustainability of litmus production record database reading out the log for the asynchronous background query execution to monitor for examples for errors is one of the cornerstones of a support strategy user can do this either by using applications such as microsoft sql server management studio mssql cli this can also be used for building custom solutions based on applications which allow for an odbc connection such as excel c# net python litmus does provide a function for this which can be used in either a select statement as well can be part of a custom stored procedure method run s elect query with function prorec misc getatservicebrokerlogsutc as from clause note as the log table for the asynchronous background query execution stores the processed data as xml string, t o not overwhelm the storage requirements for litmus production record database, the table holds by default only one hour of records this can be modified through the stored procedure introduced by the chapter modify application configuration items docid\ nizz5qavwknlczz51008q input variables variable name datatype description example @starttime datetime the start of the time period for which to query data if no specific start time is required, the value can also be default which will assume the value null this will trigger the function to calculate a start time of 1h from the current time stamp this means the default time period for which data are returned is always the last hour 2023 03 09t13 04 39 647 default @endtime datetime the end of the time period for which to query data if no specific end time is required, the value can also be default which will assume the value null this will trigger the function to use the current time stamp this means the default time period for which data are returned is always the last hour 2023 03 10t13 04 39 647 default how to use to read out the log data, execute a select statement from the function prorec misc getatservicebrokerlogsutc providing all the required inputs below is an example using t sql in sql server management studio select from \[dbo] \[prorec misc getatservicebrokerlogsutc] ( default ,default) result the function returns a table as result additional options it is possible to sort data based on users requirements returned by the select statement below is an example using t sql in sql server management studio select from \[dbo] \[prorec misc getatservicebrokerlogsutc] ( default ,default) order by logtime desc the result will be a table, where all rows are sorted by their logtime in descending order