We have the query below that seems to have stopped working. I haven't been able to find a new table in the Stored Procedures that seems like it might be similar. Is there a SWQL equivalent we should use instead?
These three seem to not be reconized in SQL and the query doesn't work.
dbo.GetInBps95th(InterfaceID, @StartDate, @EndDate) AS Maxbps_In95,
dbo.GetOutBps95th(InterfaceID, @StartDate, @EndDate) AS Maxbps_Out95,
dbo.GetMaxBps95th(InterfaceID, @StartDate, @EndDate) AS Maxbps_95
SET NOCOUNT OFF
SET ROWCOUNT 0
DECLARE @StartDate DateTime
DECLARE @EndDate DateTime
SET @StartDate = ${FromTime}
SET @EndDate = ${ToTime}
SELECT
Interfaces.InterfaceReportAgency,
Interfaces.InterfaceReport,
Interfaces.InterfaceId,
Interfaces.InBandwidth,
Interfaces.OutBandwidth,
NodesOLD.NodeID,
NodesOLD.Caption AS NodeName,
(Interfaces.InterfaceSpeed/1000000) AS ProvisionedBandwidthInMb,
Interfaces.Caption AS Interface_Caption,
Interfaces.InterfaceIcon AS Interface_Icon,
Maxbps_In95,
Maxbps_Out95,
Maxbps_95
FROM [NetPerfMon].[dbo].[NodesOLD]
INNER JOIN [NetPerfMon].[dbo].[Interfaces] ON NodesOLD.NodeID = Interfaces.NodeID
INNER JOIN (
SELECT InterfaceID,
dbo.GetInBps95th(InterfaceID, @StartDate, @EndDate) AS Maxbps_In95,
dbo.GetOutBps95th(InterfaceID, @StartDate, @EndDate) AS Maxbps_Out95,
dbo.GetMaxBps95th(InterfaceID, @StartDate, @EndDate) AS Maxbps_95
FROM [NetPerfMon].[dbo].[InterfaceTraffic]
WHERE InterfaceTraffic.DateTime >= @StartDate AND InterfaceTraffic.DateTime <= @EndDate
GROUP BY InterfaceID
) TrafficStat
ON Interfaces.InterfaceID = TrafficStat.InterfaceID
WHERE Interfaces.InterfaceReport = 'Internet' OR Interfaces.InterfaceReport = 'DataCenter'
ORDER BY Interfaces.InterfaceReportAgency</pre>Also SQL shows an error for these two lines under the first curly bracket. Was there also a change for how those are handled?SET @StartDate = ${FromTime}
SET @EndDate = ${ToTime}