Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 21093

Problem with SQL query

$
0
0

Hi!

 

I made advanced alert. I have some custom pollers. When i try to add SQL query to alert message i receive it like text in e-mail. But when i try this query in sql database all works fine.

 

${SQL:Select Status

From CustomPollerAssignment as Assignment, CustomPollerStatus as Status, CustomPollers

where Assignment.PollerID = CustomPollers.PollerID and Assignment.CustomPollerAssignmentID = Status.CustomPollerAssignmentID and Assignment.NodeID = 7 and Assignment.AssignmentName like 'upsBasicBatteryStatus%'}


Im receiving it by e-mail like this:

${SQL:Select Status

From CustomPollerAssignment as Assignment, CustomPollerStatus as Status, CustomPollers

where Assignment.PollerID = CustomPollers.PollerID and Assignment.CustomPollerAssignmentID = Status.CustomPollerAssignmentID and Assignment.NodeID = 7 and Assignment.AssignmentName like 'upsBasicBatteryStatus%'}


Can anyone explain why im receiving it like text and how fix it?


NPM version 10.4.1  SQL 2012 Express


Viewing all articles
Browse latest Browse all 21093

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>