Quantcast
Channel: THWACK: All Content - Network Performance Monitor
Viewing all articles
Browse latest Browse all 21870

Unable to get character return in custom report

$
0
0

I am using a custom SQL report, but am unable to get character returns to show in the web browser's reporting screen. The weird thing is when I preview/execute SQL query from report write, the character returns occur making the formatting look correct. Any suggestions on why this is occurring? Could there be a bug? I am using CHAR(13) to allow the line break.

 

Select(Select 'F - ' + CAST ((

Select All AVG(ResponseTime.Availability)

FROM Nodes INNER JOIN ResponseTime ON (Nodes.NodeID = ResponseTime.NodeID)

WHERE( DateTime BETWEEN (Select DATEADD(DD,DATEDIFF(dd,0,GETDATE()),-7)) AND GETDATE() )AND

(Nodes.Report = 'F Store')

)AS varchar(15)) + '%' + CHAR(13) + 'M Store Availability - ' + CAST((

SELECT  All AVG(ResponseTime.Availability)

FROM Nodes INNER JOIN ResponseTime ON (Nodes.NodeID = ResponseTime.NodeID)

WHERE( DateTime BETWEEN (Select DATEADD(DD,DATEDIFF(dd,0,GETDATE()),-7)) AND GETDATE() )AND

(Nodes.Report = 'M Store')

)AS varchar(15)) + '%' + CHAR(13) + 'Corp LAN Availability - ' + CAST((

SELECT  All AVG(ResponseTime.Availability)

FROM Nodes INNER JOIN ResponseTime ON (Nodes.NodeID = ResponseTime.NodeID)

WHERE( DateTime BETWEEN (Select DATEADD(DD,DATEDIFF(dd,0,GETDATE()),-7)) AND GETDATE() )AND

(Nodes.Report = 'Office LAN')

)AS varchar(15)) + '%' + CHAR(13) + 'Corp WLAN Availability - ' + CAST((

SELECT  All AVG(ResponseTime.Availability)

FROM Nodes INNER JOIN ResponseTime ON (Nodes.NodeID = ResponseTime.NodeID)

WHERE( DateTime BETWEEN (Select DATEADD(DD,DATEDIFF(dd,0,GETDATE()),-7)) AND GETDATE() )AND

(Nodes.Report = 'Office WLAN')

)AS varchar(15)) + '%' + CHAR(13) + 'Internet Availability - ' + CAST((

SELECT  All AVG(ResponseTime.Availability)

FROM Nodes INNER JOIN ResponseTime ON (Nodes.NodeID = ResponseTime.NodeID)

WHERE( DateTime BETWEEN (Select DATEADD(DD,DATEDIFF(dd,0,GETDATE()),-7)) AND GETDATE() )AND

(Nodes.Report = 'Internet')

)AS varchar(15)) + '%')AS Availability_Average

 

View from Report Writer's Preview Screen:

Web Browser's View:


Viewing all articles
Browse latest Browse all 21870

Trending Articles



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