Hello all,
I need some help putting together a SQL statement which will query all interfaces where a node matches a custom property and then update a field. I have used report writer to get the SQL statement but I don't know how to make the update part work. Below is the SQL I have so far which returns the results I'm looking for.
select top 10000 Nodes.Site_Type AS Site_Type,
Nodes.Site_Type AS Site_Type,
Nodes.Caption AS NodeName,
Nodes.PollInterval AS Poll_Interval,
Nodes.StatCollection AS Stat_Collection,
Interfaces.Caption AS Interface_Caption,
Interfaces.PollInterval AS Poll_Interval_1,
Interfaces.StatCollection AS StatCollection
FROM Nodes
INNER JOIN Interfaces ON (Nodes.NodeID = Interfaces.NodeID)
WHERE
(
(Nodes.Site_Type = 'HQ') AND
(Nodes.CommonName Like '%WAN%'
)
Thanks!