<?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; 2005 &#8211; Difference and Similarity Between NEWSEQUENTIALID() and NEWID()</title>
	<atom:link href="http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Mon, 13 Feb 2012 15:11:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: dineshrajan</title>
		<link>http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/#comment-133748</link>
		<dc:creator><![CDATA[dineshrajan]]></dc:creator>
		<pubDate>Tue, 10 May 2011 05:30:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/#comment-133748</guid>
		<description><![CDATA[Nice one]]></description>
		<content:encoded><![CDATA[<p>Nice one</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Clement</title>
		<link>http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/#comment-60559</link>
		<dc:creator><![CDATA[Clement]]></dc:creator>
		<pubDate>Tue, 02 Feb 2010 14:16:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/#comment-60559</guid>
		<description><![CDATA[Regarding the question how to retrieve the new identifier.
You can use the output clause to insert within a variable table or retrieve it like:

INSERT INTO Table (col1) 
OUTPUT Inserted.IdGuid
SELECT &#039;Test&#039; UNION SELECT &#039;Test2&#039;

This gives you two rows.]]></description>
		<content:encoded><![CDATA[<p>Regarding the question how to retrieve the new identifier.<br />
You can use the output clause to insert within a variable table or retrieve it like:</p>
<p>INSERT INTO Table (col1)<br />
OUTPUT Inserted.IdGuid<br />
SELECT &#8216;Test&#8217; UNION SELECT &#8216;Test2&#8242;</p>
<p>This gives you two rows.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dku</title>
		<link>http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/#comment-57592</link>
		<dc:creator><![CDATA[dku]]></dc:creator>
		<pubDate>Fri, 13 Nov 2009 11:55:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/#comment-57592</guid>
		<description><![CDATA[oh, so good.]]></description>
		<content:encoded><![CDATA[<p>oh, so good.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dku</title>
		<link>http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/#comment-57591</link>
		<dc:creator><![CDATA[dku]]></dc:creator>
		<pubDate>Fri, 13 Nov 2009 11:54:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/#comment-57591</guid>
		<description><![CDATA[this is good.]]></description>
		<content:encoded><![CDATA[<p>this is good.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ygal</title>
		<link>http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/#comment-50910</link>
		<dc:creator><![CDATA[ygal]]></dc:creator>
		<pubDate>Mon, 13 Apr 2009 04:19:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/#comment-50910</guid>
		<description><![CDATA[can i use newid() to bring me top 4  random row in xml  explicit and

example


        
              
              
              
               
        
         
              
              
              
               
        
         
              
              
              
               
        



I Tried to create this but without all success if will be able to help me I will be very grateful]]></description>
		<content:encoded><![CDATA[<p>can i use newid() to bring me top 4  random row in xml  explicit and</p>
<p>example</p>
<p>I Tried to create this but without all success if will be able to help me I will be very grateful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ravi Shankar</title>
		<link>http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/#comment-49387</link>
		<dc:creator><![CDATA[Ravi Shankar]]></dc:creator>
		<pubDate>Wed, 18 Mar 2009 09:24:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/#comment-49387</guid>
		<description><![CDATA[I am using NewId() to retrieve random records ..Is it correct?
May I know how this function works?

with regards,
 Ravi Shankar]]></description>
		<content:encoded><![CDATA[<p>I am using NewId() to retrieve random records ..Is it correct?<br />
May I know how this function works?</p>
<p>with regards,<br />
 Ravi Shankar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: senthil</title>
		<link>http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/#comment-47848</link>
		<dc:creator><![CDATA[senthil]]></dc:creator>
		<pubDate>Mon, 02 Mar 2009 11:41:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/#comment-47848</guid>
		<description><![CDATA[Hi,

How to get the last inserted NEWSEQUENTIALID()

Senthil]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>How to get the last inserted NEWSEQUENTIALID()</p>
<p>Senthil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQLAuthority News - Best Articles on SQLAuthority.com Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/#comment-47238</link>
		<dc:creator><![CDATA[SQLAuthority News - Best Articles on SQLAuthority.com Journey to SQL Authority with Pinal Dave]]></dc:creator>
		<pubDate>Tue, 24 Feb 2009 12:10:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/#comment-47238</guid>
		<description><![CDATA[[...] SQL SERVER - 2005 - Difference and Similarity Between NEWSEQUENTIALID() and NEWID() [...]]]></description>
		<content:encoded><![CDATA[<p>[...] SQL SERVER &#8211; 2005 &#8211; Difference and Similarity Between NEWSEQUENTIALID() and NEWID() [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JAG</title>
		<link>http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/#comment-45211</link>
		<dc:creator><![CDATA[JAG]]></dc:creator>
		<pubDate>Tue, 30 Dec 2008 23:59:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/#comment-45211</guid>
		<description><![CDATA[Jerry,

Instead of relying sql server to insert the identity for you or on scope_identity() to get its corresponding value, just use a temporary variable to hold it and insert it yourself.

Example:

DECLARE @mynewid uniqueidentifier;

-- choose one of the following
SET @mynewid = newid()
SET @mynewid = newsequentialid()

INSERT INTO MyTable(@mynewid, &#039;other fields&#039;,....)]]></description>
		<content:encoded><![CDATA[<p>Jerry,</p>
<p>Instead of relying sql server to insert the identity for you or on scope_identity() to get its corresponding value, just use a temporary variable to hold it and insert it yourself.</p>
<p>Example:</p>
<p>DECLARE @mynewid uniqueidentifier;</p>
<p>&#8211; choose one of the following<br />
SET @mynewid = newid()<br />
SET @mynewid = newsequentialid()</p>
<p>INSERT INTO MyTable(@mynewid, &#8216;other fields&#8217;,&#8230;.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jerry Nixon</title>
		<link>http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/#comment-42362</link>
		<dc:creator><![CDATA[Jerry Nixon]]></dc:creator>
		<pubDate>Wed, 03 Sep 2008 17:02:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/#comment-42362</guid>
		<description><![CDATA[How do I retrieve what the new id is? Usualy, I would use scope_itendity() to get what the record&#039;s id is. But scope_identity() data type is integer, not guid. Is there a new scope_identity()-equiv method in SQL?]]></description>
		<content:encoded><![CDATA[<p>How do I retrieve what the new id is? Usualy, I would use scope_itendity() to get what the record&#8217;s id is. But scope_identity() data type is integer, not guid. Is there a new scope_identity()-equiv method in SQL?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ram Anam</title>
		<link>http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/#comment-30489</link>
		<dc:creator><![CDATA[Ram Anam]]></dc:creator>
		<pubDate>Mon, 31 Dec 2007 08:10:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/#comment-30489</guid>
		<description><![CDATA[Hi,

What are the performance gain for 
uniqueidentifier column with  NEWSEQUENTIALID()  as DEFAULT VALUE and NON CLUSTURED INDEX
against
uniqueidentifier column with  NEWID()  as DEFAULT VALUE and NON CLUSTURED INDEX

Thank-you.]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>What are the performance gain for<br />
uniqueidentifier column with  NEWSEQUENTIALID()  as DEFAULT VALUE and NON CLUSTURED INDEX<br />
against<br />
uniqueidentifier column with  NEWID()  as DEFAULT VALUE and NON CLUSTURED INDEX</p>
<p>Thank-you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rana</title>
		<link>http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/#comment-13397</link>
		<dc:creator><![CDATA[Rana]]></dc:creator>
		<pubDate>Thu, 20 Sep 2007 15:06:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/08/16/sql-server-2005-difference-and-similarity-between-newsequentialid-and-newid/#comment-13397</guid>
		<description><![CDATA[Good One]]></description>
		<content:encoded><![CDATA[<p>Good One</p>
]]></content:encoded>
	</item>
</channel>
</rss>

