﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / Can I insert today's date in an email? / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sun, 19 May 2013 07:17:39 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Can I insert today's date in an email?</title><link>http://www.sqlservercentral.com/Forums/Topic1418583-391-1.aspx</link><description>[quote][b]Ed Wagner (2/11/2013)[/b][hr]Unfortunately, SQL Server doesn't like to have concatenated stuff passed to parameters.  So, you could do something like this:[code="sql"]declare @strBody varchar(255);select @strBody = 'This is to test that today is ' + CONVERT(VARCHAR(12), GETDATE(), 101) + ' and it is a good day';EXEC msdb.dbo.sp_send_dbmail  @recipients = 'someone@yahoo.com',  @subject = 'Test',  @body = @strBody;[/code][/quote]That was good. Thanks</description><pubDate>Wed, 13 Feb 2013 07:28:04 GMT</pubDate><dc:creator>newdba_sql</dc:creator></item><item><title>RE: Can I insert today's date in an email?</title><link>http://www.sqlservercentral.com/Forums/Topic1418583-391-1.aspx</link><description>Unfortunately, SQL Server doesn't like to have concatenated stuff passed to parameters.  So, you could do something like this:[code="sql"]declare @strBody varchar(255);select @strBody = 'This is to test that today is ' + CONVERT(VARCHAR(12), GETDATE(), 101) + ' and it is a good day';EXEC msdb.dbo.sp_send_dbmail  @recipients = 'someone@yahoo.com',  @subject = 'Test',  @body = @strBody;[/code]</description><pubDate>Mon, 11 Feb 2013 11:46:00 GMT</pubDate><dc:creator>Ed Wagner</dc:creator></item><item><title>Can I insert today's date in an email?</title><link>http://www.sqlservercentral.com/Forums/Topic1418583-391-1.aspx</link><description>I have to set up a sql job that sends an email suppose"This is to test that today is 02/11/2013 and it is a good day"EXEC msdb.dbo.sp_send_dbmail		@recipients = 'someone@yahoo.com,		@subject = 'Test',		@body = 'This is to test that today is 02/11/2013 and it is a good day'Is there any way that whenever the job runs it puts the current date with "SELECT CONVERT(VARCHAR(12),GETDATE(), 101)"</description><pubDate>Mon, 11 Feb 2013 11:32:36 GMT</pubDate><dc:creator>newdba_sql</dc:creator></item></channel></rss>