Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. EXEC msdb.dbo.sp_send_dbmail
  2. @recipients ='<your email address>'
  3. ,@subject = 'iCalendar Example'
  4. , @query = 'SET NOCOUNT ON;SELECT ''BEGIN:VCALENDAR''+ CHAR(13)+ ''VERSION:2.0''+ CHAR(13)+ ''METHOD:PUBLISH''+ CHAR(13)+ ''BEGIN:VEVENT''+ CHAR(13)+ ''CLASS:PUBLIC''+ CHAR(13)+ ''DESCRIPTION:This is the iCalendar example Most client application support it''+ CHAR(13)+ ''SUMMARY:iCalendar''+ CHAR(13)+ ''DTEND:20150325T110000''+ CHAR(13)+ ''DTSTART:20150325T120000''+ CHAR(13)+ ''LOCATION:My Office''+ CHAR(13)+ ''END:VEVENT''+ CHAR(13)+ ''END:VCALENDAR'''
  5. , @attach_query_result_as_file = 1
  6. , @query_result_header = 0
  7. , @query_result_separator = 'CHAR(10)+CHAR(13)'
  8. , @exclude_query_output = 1
  9. , @query_attachment_filename = '123.ics'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement