We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
SET @tableHTML = N'<H1>SLX report for activities on ' + @Today + '</H1>' + N'<table border="1">' + N'<tr><th>Account</th><th>Contact Name</th><th>Opportunity Name</th>' + N'<th>Description</th><th>Activity Type</th><th>Notes</th><th>Username</th>' + '</tr>' + CAST ( ( SELECT td = ' ' + [ACCOUNTNAME], '', td = ' ' + [CONTACTNAME], '', td = ' ' + [OPPORTUNITYNAME], '', td = ' ' + [DESCRIPTION], '', td = ' ' + [CATEGORY], '', td = ' ' + [NOTES], '', td = ' ' + [USERNAME] from sysdba.History where CAST(CREATEDATE as Date) = convert(NVARCHAR,GetDate(), 112) FOR XML PATH('tr'), TYPE ) AS NVARCHAR(MAX) ) + N'</table>' ;
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.