 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Email from SQL Server Management Console</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/email-from-sql-server-management-console/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/email-from-sql-server-management-console/</link>
	<description></description>
	<lastBuildDate>Thu, 23 May 2013 13:24:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: roaddust</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/email-from-sql-server-management-console/#comment-56549</link>
		<dc:creator>roaddust</dc:creator>
		<pubDate>Fri, 19 Sep 2008 16:05:19 +0000</pubDate>
		<guid isPermaLink="false">#comment-56549</guid>
		<description><![CDATA[Nevermind, once I added my database name to the SQL statement it worked.  Instead of dbo.QryJobTimeNoEntryLast30 it had to be Jobtracking.dbo.QryJobTimeNoEntryLast30.

Thanks a lot for your help.
Dustin]]></description>
		<content:encoded><![CDATA[<p>Nevermind, once I added my database name to the SQL statement it worked.  Instead of dbo.QryJobTimeNoEntryLast30 it had to be Jobtracking.dbo.QryJobTimeNoEntryLast30.</p>
<p>Thanks a lot for your help.<br />
Dustin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roaddust</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/email-from-sql-server-management-console/#comment-56546</link>
		<dc:creator>roaddust</dc:creator>
		<pubDate>Fri, 19 Sep 2008 15:49:37 +0000</pubDate>
		<guid isPermaLink="false">#comment-56546</guid>
		<description><![CDATA[Thanks for your help, Now when I try to run the T-SQL I get this message:
Error formatting query, probably invalid parameters 

And I&#039;ve even tried putting Select * from dbo.tblClients into the @query and get the same error. 

If I take out the @query it sends the email just fine.

Thanks,
Dustin]]></description>
		<content:encoded><![CDATA[<p>Thanks for your help, Now when I try to run the T-SQL I get this message:<br />
Error formatting query, probably invalid parameters </p>
<p>And I&#8217;ve even tried putting Select * from dbo.tblClients into the @query and get the same error. </p>
<p>If I take out the @query it sends the email just fine.</p>
<p>Thanks,<br />
Dustin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roaddust</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/email-from-sql-server-management-console/#comment-56507</link>
		<dc:creator>roaddust</dc:creator>
		<pubDate>Wed, 17 Sep 2008 20:44:35 +0000</pubDate>
		<guid isPermaLink="false">#comment-56507</guid>
		<description><![CDATA[You will want to create a SQL Agent job and have that job run the sp_send_dbmail procedure to send the email. One of the parameters of that procedure is @Query which will allow you to give it a SQL Query such as &quot;SELECT * FROM MyView&quot; and it will email out the output from the view.

I tried the above and am now getting the error &quot;Failed to notify DustinL via Email&quot;. I have setup DustinL as my operator, I&#039;ve double checked my email address that I entered. I&#039;ve even gone into the DatabaseMail and made sure the profile was correct. Also, I am able to send myself a test email.

Thanks,
Dustin]]></description>
		<content:encoded><![CDATA[<p>You will want to create a SQL Agent job and have that job run the sp_send_dbmail procedure to send the email. One of the parameters of that procedure is @Query which will allow you to give it a SQL Query such as &#8220;SELECT * FROM MyView&#8221; and it will email out the output from the view.</p>
<p>I tried the above and am now getting the error &#8220;Failed to notify DustinL via Email&#8221;. I have setup DustinL as my operator, I&#8217;ve double checked my email address that I entered. I&#8217;ve even gone into the DatabaseMail and made sure the profile was correct. Also, I am able to send myself a test email.</p>
<p>Thanks,<br />
Dustin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mrdenny</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/email-from-sql-server-management-console/#comment-56505</link>
		<dc:creator>mrdenny</dc:creator>
		<pubDate>Wed, 17 Sep 2008 19:11:16 +0000</pubDate>
		<guid isPermaLink="false">#comment-56505</guid>
		<description><![CDATA[Check out my SQL Server blog &quot;&lt;a href=&quot;http://itknowledgeexchange.techtarget.com/sql-server/&quot;&gt;SQL Server with Mr Denny&lt;/a&gt;&quot; for more SQL Server information.]]></description>
		<content:encoded><![CDATA[<p>Check out my SQL Server blog &#8220;<a href="http://itknowledgeexchange.techtarget.com/sql-server/">SQL Server with Mr Denny</a>&#8221; for more SQL Server information.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.042 seconds using memcached
Object Caching 309/315 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-23 13:37:14 -->