i want to get all the records of the table but it is not displaying more than ch3794, col 3794, Ln 35
how to get the Query Output in HTML Format to send the report in Email?
DECLARE @xmlthree NVARCHAR(MAX)
DECLARE @bodythree NVARCHAR(MAX)
SET @xmlthree = CAST(( SELECT
[SerName] AS 'td','',
[IPAddress] AS 'td','',
[SName] AS 'td','',
[Status] AS 'td','',
[TTaken] AS 'td','',
[MName] AS 'td','',
[TTime] AS 'td'
FROM [dbo].[Error-details]
ORDER BY TTaken DESC
FOR XML PATH('tr'), ELEMENTS ) AS NVARCHAR(MAX))
SET @bodythree ='<html><body><H3>Web Report</H3>
<table border="1">
<tr>
<th> SerName </th>
<th> IPAddress </th>
<th> SName </th>
<th> Status </th>
<th> TTaken </th>
<th> MName </th>
<th> TTime </th> </tr>'
SET @bodythree = @bodythree + @xmlthree +'</table></body></html>'
Print @bodythree
Go
i am getting the below output, some of the records are missing in the OUTPUT:- the red mark in the image at the end of the line in my problme