Hi all
I'm trying to create a monitor for a custom SQL Error logging database but I'm facing some difficulties.
We have a SQL database that is used for central logging of errors from different applications. The database contains a table with 5 collumns (ID, Title, Exeption, Environment and Processed).
Whenever an error occurs in an application - the application writes a record to the database.
I have no problem connectiing to the database and getting the records. But I need to be able to treat every single record as 1 error-instance.
I would like the monitor to fire a separate action for each record found in the database. However I don't know how to acheive this.
Also the collumn "Processed" is used to mark the error as "handled/Solved". When a record has the "Processed" flag - the monitor should return "Fixed" for this record.
I would really like som guidance on this.
PS. I'm using PowerShell scripting in the script - however any script language suggestions are much appriciated.
Kind regards Karsten