The Ole-DB module is a probe action module. It is defined in System.Library Management Pack (MP) as System.OleDbProbe. This module takes in the following as various configuration elements:
The output from this module is OleDb data defined in the System.Library MP as System.OleDbData and has the following elements in it:
XML Tag
Meaning
HRResult
indicating if everything went fine
Result
Detailed result in string representation,
"Success"
"Fetch Failed"
"Execution of query failed"
"Session could not be opened"
"Data Source could not be initialized"
ResultLength
Length of Result string above
InitializationTime
time that took for initialization with given ConnectionString (in ms)
OpenTime
time that took for opening a session (in ms)
ExecutionTime
time that took for executing query, if provided, else it is 0 (in ms)
FetchTime
time that took for fetching the resultSet, if it was fetched, else it is 0 (in ms)
RowLength
# of rows in resultSet
Columns
There are as many column tags as there is # of rows (RowLength).
Column
There are as many Column tags inside each Columns tag, as there is # of columns.
OriginalDataLength
GetItemXml() is called on original data and the length of returned string is captured here
OriginalData
GetItemXml() is called on original data and the result is captured here
Attached is a demo MP demonstrating how Ole-Db module can be used to generate alerts associated with management server when it takes too long to execute a query.