<?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; Transaction and Local Variables &#8211; Swap Variables &#8211; Update All At Once Concept</title>
	<atom:link href="http://blog.sqlauthority.com/2008/10/20/sql-server-transaction-and-local-variables-swap-variables-update-all-at-once-concept/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/10/20/sql-server-transaction-and-local-variables-swap-variables-update-all-at-once-concept/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:54:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: dURGESH</title>
		<link>http://blog.sqlauthority.com/2008/10/20/sql-server-transaction-and-local-variables-swap-variables-update-all-at-once-concept/#comment-55626</link>
		<dc:creator>dURGESH</dc:creator>
		<pubDate>Sat, 05 Sep 2009 18:52:21 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1402#comment-55626</guid>
		<description>DECLARE @A INT, @B INT
SELECT  @A=1,@B=2
SELECT @A A,@B B
SELECT @A=@A+@B,@B=@A-@B,@A=@A-@B
SELECT @A A,@B B</description>
		<content:encoded><![CDATA[<p>DECLARE @A INT, @B INT<br />
SELECT  @A=1,@B=2<br />
SELECT @A A,@B B<br />
SELECT @A=@A+@B,@B=@A-@B,@A=@A-@B<br />
SELECT @A A,@B B</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Madhivanan</title>
		<link>http://blog.sqlauthority.com/2008/10/20/sql-server-transaction-and-local-variables-swap-variables-update-all-at-once-concept/#comment-44033</link>
		<dc:creator>Madhivanan</dc:creator>
		<pubDate>Mon, 03 Nov 2008 13:57:18 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1402#comment-44033</guid>
		<description>For valriable swappings, you dont need a temp variable


DECLARE @VarA INT
DECLARE @VarB INT
DECLARE @VarTemp INT

SET @VarA = 1
SET @VarB = 2

SELECT @VarA =@VarA +@VarB,@VarB=@VarA- @VarB,@VarA=@VarA-@VarB

SELECT @VarA VarA, @VarB VarB</description>
		<content:encoded><![CDATA[<p>For valriable swappings, you dont need a temp variable</p>
<p>DECLARE @VarA INT<br />
DECLARE @VarB INT<br />
DECLARE @VarTemp INT</p>
<p>SET @VarA = 1<br />
SET @VarB = 2</p>
<p>SELECT @VarA =@VarA +@VarB,@VarB=@VarA- @VarB,@VarA=@VarA-@VarB</p>
<p>SELECT @VarA VarA, @VarB VarB</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paris</title>
		<link>http://blog.sqlauthority.com/2008/10/20/sql-server-transaction-and-local-variables-swap-variables-update-all-at-once-concept/#comment-44012</link>
		<dc:creator>Paris</dc:creator>
		<pubDate>Sat, 01 Nov 2008 23:33:02 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1402#comment-44012</guid>
		<description>always ur articles r usefule .. merci ;)</description>
		<content:encoded><![CDATA[<p>always ur articles r usefule .. merci ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry Hung</title>
		<link>http://blog.sqlauthority.com/2008/10/20/sql-server-transaction-and-local-variables-swap-variables-update-all-at-once-concept/#comment-43822</link>
		<dc:creator>Jerry Hung</dc:creator>
		<pubDate>Mon, 20 Oct 2008 19:21:06 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1402#comment-43822</guid>
		<description>This behaviour will be what I expected, thank god
being ATOMIC

For example
UPDATE table
SET column = GETDATE()

All columns obtain the same GETDATE() value, instead of milliseconds apart for a large table</description>
		<content:encoded><![CDATA[<p>This behaviour will be what I expected, thank god<br />
being ATOMIC</p>
<p>For example<br />
UPDATE table<br />
SET column = GETDATE()</p>
<p>All columns obtain the same GETDATE() value, instead of milliseconds apart for a large table</p>
]]></content:encoded>
	</item>
</channel>
</rss>
