Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.
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.