<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Email from Blog Reader &#8211; Not a Potential Bug in SQL &#8211; Puzzle</title>
	<atom:link href="http://blog.sqlauthority.com/2008/12/13/sql-server-interesting-email-from-blog-reader-puzzle/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/12/13/sql-server-interesting-email-from-blog-reader-puzzle/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Sun, 12 Feb 2012 09:22:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Amit</title>
		<link>http://blog.sqlauthority.com/2008/12/13/sql-server-interesting-email-from-blog-reader-puzzle/#comment-53724</link>
		<dc:creator><![CDATA[Amit]]></dc:creator>
		<pubDate>Wed, 15 Jul 2009 11:25:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1721#comment-53724</guid>
		<description><![CDATA[Its a good catch...You are doin a very good job Pinal...Ye dil maange more...]]></description>
		<content:encoded><![CDATA[<p>Its a good catch&#8230;You are doin a very good job Pinal&#8230;Ye dil maange more&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Virendra Dugar</title>
		<link>http://blog.sqlauthority.com/2008/12/13/sql-server-interesting-email-from-blog-reader-puzzle/#comment-47447</link>
		<dc:creator><![CDATA[Virendra Dugar]]></dc:creator>
		<pubDate>Thu, 26 Feb 2009 10:29:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1721#comment-47447</guid>
		<description><![CDATA[Hi Pinal,

I was the one who mailed you.. 
Thanks for the info.
Will meet you for sure as I live in ahmedabad only.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I was the one who mailed you..<br />
Thanks for the info.<br />
Will meet you for sure as I live in ahmedabad only.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Srinivas Gudimella</title>
		<link>http://blog.sqlauthority.com/2008/12/13/sql-server-interesting-email-from-blog-reader-puzzle/#comment-45210</link>
		<dc:creator><![CDATA[Srinivas Gudimella]]></dc:creator>
		<pubDate>Tue, 30 Dec 2008 22:39:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1721#comment-45210</guid>
		<description><![CDATA[Hi Friends,

There is one more SEVERE Bug according me in SQL Server which I posted in MSDN Forum (link below). I did not get a satisfactory answer. The issue is basically you can create database objects without specifying a name. Look at the link below and send your responses......I am not sure if this got rectified in SQL Server 2008 but for sure this is an issue till SQL Server 2005.

The only reply I got from the forum was not satisfactory. Why should I create DDL trigger to check for blank table names or procedure names? The system should automatically take care of this scenario.

http://social.msdn.microsoft.com/forums/en-US/sqldatabaseengine/thread/568f01fc-abca-4658-8307-170b1284c60f

Regards
Srinivas Gudimella]]></description>
		<content:encoded><![CDATA[<p>Hi Friends,</p>
<p>There is one more SEVERE Bug according me in SQL Server which I posted in MSDN Forum (link below). I did not get a satisfactory answer. The issue is basically you can create database objects without specifying a name. Look at the link below and send your responses&#8230;&#8230;I am not sure if this got rectified in SQL Server 2008 but for sure this is an issue till SQL Server 2005.</p>
<p>The only reply I got from the forum was not satisfactory. Why should I create DDL trigger to check for blank table names or procedure names? The system should automatically take care of this scenario.</p>
<p><a href="http://social.msdn.microsoft.com/forums/en-US/sqldatabaseengine/thread/568f01fc-abca-4658-8307-170b1284c60f" rel="nofollow">http://social.msdn.microsoft.com/forums/en-US/sqldatabaseengine/thread/568f01fc-abca-4658-8307-170b1284c60f</a></p>
<p>Regards<br />
Srinivas Gudimella</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seema</title>
		<link>http://blog.sqlauthority.com/2008/12/13/sql-server-interesting-email-from-blog-reader-puzzle/#comment-45026</link>
		<dc:creator><![CDATA[Seema]]></dc:creator>
		<pubDate>Tue, 23 Dec 2008 10:42:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1721#comment-45026</guid>
		<description><![CDATA[Interesting.]]></description>
		<content:encoded><![CDATA[<p>Interesting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kristina</title>
		<link>http://blog.sqlauthority.com/2008/12/13/sql-server-interesting-email-from-blog-reader-puzzle/#comment-45006</link>
		<dc:creator><![CDATA[Kristina]]></dc:creator>
		<pubDate>Mon, 22 Dec 2008 15:38:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1721#comment-45006</guid>
		<description><![CDATA[I like this puzzle example, I&#039;d like more, especially relating to achieving an &quot;answer&quot; maximum efficiency. Like giving one query, make it run x% faster.]]></description>
		<content:encoded><![CDATA[<p>I like this puzzle example, I&#8217;d like more, especially relating to achieving an &#8220;answer&#8221; maximum efficiency. Like giving one query, make it run x% faster.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mahi</title>
		<link>http://blog.sqlauthority.com/2008/12/13/sql-server-interesting-email-from-blog-reader-puzzle/#comment-44889</link>
		<dc:creator><![CDATA[mahi]]></dc:creator>
		<pubDate>Wed, 17 Dec 2008 16:56:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1721#comment-44889</guid>
		<description><![CDATA[Pinal,

Thanks to the reader who found this issue and thanks to you for posting it. Please, please do post articles/puzzles like these. It is very helpful in understanding SQL Server behaviour.

Regards,
Mahi]]></description>
		<content:encoded><![CDATA[<p>Pinal,</p>
<p>Thanks to the reader who found this issue and thanks to you for posting it. Please, please do post articles/puzzles like these. It is very helpful in understanding SQL Server behaviour.</p>
<p>Regards,<br />
Mahi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruppel</title>
		<link>http://blog.sqlauthority.com/2008/12/13/sql-server-interesting-email-from-blog-reader-puzzle/#comment-44858</link>
		<dc:creator><![CDATA[Ruppel]]></dc:creator>
		<pubDate>Tue, 16 Dec 2008 18:48:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1721#comment-44858</guid>
		<description><![CDATA[I am not your reader, but I think I will became one ;)]]></description>
		<content:encoded><![CDATA[<p>I am not your reader, but I think I will became one ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gajanan</title>
		<link>http://blog.sqlauthority.com/2008/12/13/sql-server-interesting-email-from-blog-reader-puzzle/#comment-44800</link>
		<dc:creator><![CDATA[Gajanan]]></dc:creator>
		<pubDate>Mon, 15 Dec 2008 07:01:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1721#comment-44800</guid>
		<description><![CDATA[This is very interesting.]]></description>
		<content:encoded><![CDATA[<p>This is very interesting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: R.Scott</title>
		<link>http://blog.sqlauthority.com/2008/12/13/sql-server-interesting-email-from-blog-reader-puzzle/#comment-44785</link>
		<dc:creator><![CDATA[R.Scott]]></dc:creator>
		<pubDate>Sun, 14 Dec 2008 19:47:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1721#comment-44785</guid>
		<description><![CDATA[Dear Pinal:
I have been reading your blog for some time now--I grab it on my Google Reader and share with friends. I really enjoy all the subjects, all the puzzles and problems including this one. I don&#039;t yet have the expertise (not even remotely close) that you and many of your readers possess, but your blog helps me quite a bit. I just thought I&#039;d let you know that to encourage more puzzles and solutions. Thanks for doing what you do. It helps those of us at the begging of this SQL journey tremendously.

Sincerely,
R.Scott]]></description>
		<content:encoded><![CDATA[<p>Dear Pinal:<br />
I have been reading your blog for some time now&#8211;I grab it on my Google Reader and share with friends. I really enjoy all the subjects, all the puzzles and problems including this one. I don&#8217;t yet have the expertise (not even remotely close) that you and many of your readers possess, but your blog helps me quite a bit. I just thought I&#8217;d let you know that to encourage more puzzles and solutions. Thanks for doing what you do. It helps those of us at the begging of this SQL journey tremendously.</p>
<p>Sincerely,<br />
R.Scott</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NANDAKUMAR</title>
		<link>http://blog.sqlauthority.com/2008/12/13/sql-server-interesting-email-from-blog-reader-puzzle/#comment-44773</link>
		<dc:creator><![CDATA[NANDAKUMAR]]></dc:creator>
		<pubDate>Sat, 13 Dec 2008 04:32:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1721#comment-44773</guid>
		<description><![CDATA[Dear Pinal,

Nice Article. I&#039;m also come across the similar situation. I guess I found here, instead of using &#039;IN&#039; clause, it is better recommended to use &#039;EXISTS&#039; clause. And its performance also be favour to Server.

The UPDATE statement  in the email can be better replaced by

UPDATE tblAPPLICANTS SET ISCOMPLETED=1 WHERE ENQUIRYID=1 AND EXISTS(SELECT 1 FROM tblENQUIRY WHERE ENQUIRYID=tblAPPLICANTS.ENQUIRYID) 

or

UPDATE tblAPPLICANTS SET ISCOMPLETED=1 WHERE EXISTS(SELECT 1 FROM tblENQUIRY WHERE ENQUIRYID=tblAPPLICANTS.ENQUIRYID AND ENQUIRYID=1) 


Thanks &amp; Regds

Nandakumar M]]></description>
		<content:encoded><![CDATA[<p>Dear Pinal,</p>
<p>Nice Article. I&#8217;m also come across the similar situation. I guess I found here, instead of using &#8216;IN&#8217; clause, it is better recommended to use &#8216;EXISTS&#8217; clause. And its performance also be favour to Server.</p>
<p>The UPDATE statement  in the email can be better replaced by</p>
<p>UPDATE tblAPPLICANTS SET ISCOMPLETED=1 WHERE ENQUIRYID=1 AND EXISTS(SELECT 1 FROM tblENQUIRY WHERE ENQUIRYID=tblAPPLICANTS.ENQUIRYID) </p>
<p>or</p>
<p>UPDATE tblAPPLICANTS SET ISCOMPLETED=1 WHERE EXISTS(SELECT 1 FROM tblENQUIRY WHERE ENQUIRYID=tblAPPLICANTS.ENQUIRYID AND ENQUIRYID=1) </p>
<p>Thanks &amp; Regds</p>
<p>Nandakumar M</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tok</title>
		<link>http://blog.sqlauthority.com/2008/12/13/sql-server-interesting-email-from-blog-reader-puzzle/#comment-44771</link>
		<dc:creator><![CDATA[Tok]]></dc:creator>
		<pubDate>Sat, 13 Dec 2008 03:42:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=1721#comment-44771</guid>
		<description><![CDATA[Nice one Pinal!

I can see how this would catch a lot of people out.  It&#039;s certainly not clear on first look, as to what&#039;s happening.

It&#039;s a good argument for fully qualifying your columns in subqueries, I think.

Definitely have more articles like this one, please!]]></description>
		<content:encoded><![CDATA[<p>Nice one Pinal!</p>
<p>I can see how this would catch a lot of people out.  It&#8217;s certainly not clear on first look, as to what&#8217;s happening.</p>
<p>It&#8217;s a good argument for fully qualifying your columns in subqueries, I think.</p>
<p>Definitely have more articles like this one, please!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

