<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-495177919198719500.post1860420345574171880..comments</id><updated>2008-04-27T11:02:09.055-07:00</updated><title type='text'>Comments on Sql Server Blog: SET VS SELECT - When to use what?</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.sqlservercurry.com/feeds/1860420345574171880/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/1860420345574171880/comments/default'/><link rel='alternate' type='text/html' href='http://www.sqlservercurry.com/2008/04/set-vs-select-when-to-use-what.html'/><author><name>Suprotim Agarwal</name><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-495177919198719500.post-1845849449197845092</id><published>2008-04-27T11:02:09.055-07:00</published><updated>2008-04-27T11:02:09.055-07:00</updated><title type='text'>Thanks Boyan and Bart for the informative comments...</title><content type='html'>Thanks Boyan and Bart for the informative comments..</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/1860420345574171880/comments/default/1845849449197845092'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/1860420345574171880/comments/default/1845849449197845092'/><link rel='alternate' type='text/html' href='http://www.sqlservercurry.com/2008/04/set-vs-select-when-to-use-what.html?showComment=1209319329055#c1845849449197845092' title=''/><author><name>Suprotim Agarwal</name><uri>http://www.blogger.com/profile/08349831623922214390</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='16792399207439810270'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sqlservercurry.com/2008/04/set-vs-select-when-to-use-what.html' ref='tag:blogger.com,1999:blog-495177919198719500.post-1860420345574171880' source='http://www.blogger.com/feeds/495177919198719500/posts/default/1860420345574171880' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-495177919198719500.post-1739341377545210690</id><published>2008-04-27T08:58:52.927-07:00</published><updated>2008-04-27T08:58:52.927-07:00</updated><title type='text'>Multiple assignments is by far the biggest reason ...</title><content type='html'>Multiple assignments is by far the biggest reason to use select over set.  It gives you a huge performance gain if you are setting a lot of variables for a big sproc/script&lt;BR/&gt;&lt;BR/&gt;declare @test int, @test2 int;&lt;BR/&gt;set @test = 1, @test2 = 2; --doesn't work&lt;BR/&gt;select @test = 1, @test2 = 2; -- works</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/1860420345574171880/comments/default/1739341377545210690'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/1860420345574171880/comments/default/1739341377545210690'/><link rel='alternate' type='text/html' href='http://www.sqlservercurry.com/2008/04/set-vs-select-when-to-use-what.html?showComment=1209311932927#c1739341377545210690' title=''/><author><name>Bart Czernicki</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sqlservercurry.com/2008/04/set-vs-select-when-to-use-what.html' ref='tag:blogger.com,1999:blog-495177919198719500.post-1860420345574171880' source='http://www.blogger.com/feeds/495177919198719500/posts/default/1860420345574171880' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-495177919198719500.post-6569029901683189216</id><published>2008-04-25T05:49:45.221-07:00</published><updated>2008-04-25T05:49:45.221-07:00</updated><title type='text'>A shorter variation of:SELECT @CID = (Select CID f...</title><content type='html'>A shorter variation of:&lt;BR/&gt;SELECT @CID = (Select CID from Customers)&lt;BR/&gt;is&lt;BR/&gt;SELECT @CID = CID from Customers</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/1860420345574171880/comments/default/6569029901683189216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/495177919198719500/1860420345574171880/comments/default/6569029901683189216'/><link rel='alternate' type='text/html' href='http://www.sqlservercurry.com/2008/04/set-vs-select-when-to-use-what.html?showComment=1209127785221#c6569029901683189216' title=''/><author><name>Boyan Kostadinov</name><uri>http://www.blogger.com/profile/01361725622852028759</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.sqlservercurry.com/2008/04/set-vs-select-when-to-use-what.html' ref='tag:blogger.com,1999:blog-495177919198719500.post-1860420345574171880' source='http://www.blogger.com/feeds/495177919198719500/posts/default/1860420345574171880' type='text/html'/></entry></feed>