OK .. so i a nutshell you want to query some data from some remote SQL databases
The resultant rows from the query would then be returned and uploaded into a local database e.g. to your Kaseya Servers SQL database
Then you want kaseya to parse the rows as they are added and alarm if a particular value is found within a row ?
Is that sort of the scenario ?
Getting Data from remote machines is relatively easy by running the SQL queries and outputting the data to csv files
Then copy the csv files to your Kaseya Server and then have a script that runs on the Kaseya server that takes the csv files and uploads them to your local database.
Just schedule this as often as you need to coincide with the frequency you do the remote exports.
You could then have this same script execute some VB that checks the local DB for the record types you need to alarm on , and if you are using Kaseya V6.3 , the script can now create an Alarm or Ticket directly from with in the script
Am I way off the mark .. or close ?
Paul