<?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; Generate Incremented Linear Number Sequence</title>
	<atom:link href="http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/</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: deepkt</title>
		<link>http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-216856</link>
		<dc:creator><![CDATA[deepkt]]></dc:creator>
		<pubDate>Tue, 13 Dec 2011 14:43:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-216856</guid>
		<description><![CDATA[Hi,
We can use cte for this:

below code will generate  1to 50 numbers.

WITH cte
AS (
SELECT 1 AS n
UNION ALL
SELECT n + 1  FROM cte WHERE n &lt; 50
)
SELECT * FROM cte]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
We can use cte for this:</p>
<p>below code will generate  1to 50 numbers.</p>
<p>WITH cte<br />
AS (<br />
SELECT 1 AS n<br />
UNION ALL<br />
SELECT n + 1  FROM cte WHERE n &lt; 50<br />
)<br />
SELECT * FROM cte</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-187724</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Thu, 03 Nov 2011 09:54:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-187724</guid>
		<description><![CDATA[Why do you need this? You can use a co-related subquery if the table has a unique column but that would be expensive in time]]></description>
		<content:encoded><![CDATA[<p>Why do you need this? You can use a co-related subquery if the table has a unique column but that would be expensive in time</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kamesh</title>
		<link>http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-183205</link>
		<dc:creator><![CDATA[Kamesh]]></dc:creator>
		<pubDate>Tue, 25 Oct 2011 05:39:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-183205</guid>
		<description><![CDATA[Hi Pinal and other SQL Server Kings,

   I am trying to generate sequence number with following condition.Can you please help me out.

 1.Single Select Query
 2.Not to use row number function
 

Thanks for help in advance....

Kamesh]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal and other SQL Server Kings,</p>
<p>   I am trying to generate sequence number with following condition.Can you please help me out.</p>
<p> 1.Single Select Query<br />
 2.Not to use row number function</p>
<p>Thanks for help in advance&#8230;.</p>
<p>Kamesh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abwaanka</title>
		<link>http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-174466</link>
		<dc:creator><![CDATA[Abwaanka]]></dc:creator>
		<pubDate>Mon, 03 Oct 2011 05:09:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-174466</guid>
		<description><![CDATA[SELECT ISNULL(MAX(ColumnName),0) + 1 as AliasColumnName FROM TableName

or More Complicated one with String + Numeric generating IDs:

select &#039;SNO&#039; + REPLICATE(&#039;0&#039;,5-len(cast(isnull(max(cast(right(ColumnName,5) as int)),0) + 1 as varchar(20)))) + cast(isnull(max(cast(right(ColumnName,5) as int)),0) + 1 as varchar(20)) As AliasColumnName from TableName]]></description>
		<content:encoded><![CDATA[<p>SELECT ISNULL(MAX(ColumnName),0) + 1 as AliasColumnName FROM TableName</p>
<p>or More Complicated one with String + Numeric generating IDs:</p>
<p>select &#8216;SNO&#8217; + REPLICATE(&#8217;0&#8242;,5-len(cast(isnull(max(cast(right(ColumnName,5) as int)),0) + 1 as varchar(20)))) + cast(isnull(max(cast(right(ColumnName,5) as int)),0) + 1 as varchar(20)) As AliasColumnName from TableName</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: santhosh</title>
		<link>http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-158718</link>
		<dc:creator><![CDATA[santhosh]]></dc:creator>
		<pubDate>Thu, 18 Aug 2011 06:49:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-158718</guid>
		<description><![CDATA[how to increase the class,
i.e 6th class-01-02-2011; now 
      7th class 01-02-2012;  how to write a sequence query for in sql server 2008]]></description>
		<content:encoded><![CDATA[<p>how to increase the class,<br />
i.e 6th class-01-02-2011; now<br />
      7th class 01-02-2012;  how to write a sequence query for in sql server 2008</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Kramer</title>
		<link>http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-141694</link>
		<dc:creator><![CDATA[Paul Kramer]]></dc:creator>
		<pubDate>Fri, 17 Jun 2011 19:54:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-141694</guid>
		<description><![CDATA[We were looking for a dynamic solution resulting in a table with just the sequential counter. Here is the resulting user defined function that returns a table that you can use in-line with a SELECT statement.

CREATE FUNCTION SequenceTable (@startNum INT, @endNum INT)
RETURNS @tmptbl TABLE ( counter INT )
AS 
BEGIN
	WHILE (@startNum &lt;= @endNum)
	BEGIN
		INSERT INTO @tmptbl SELECT @startNum
		SELECT @startNum = @startNum + 1	
	END
	RETURN 
END


Now you can use it to dynamically return a sequence of numbers:

SELECT * FROM SequenceTable (0, 30)

This was usefully for our purposes to return the next 30 days for a report (to be LEFT JOIN&#039;ed to the data table which might not contain values for each day)

SELECT DATEADD(d, counter, GetDate()) AS SeqDate FROM SequenceTable (0, 30)]]></description>
		<content:encoded><![CDATA[<p>We were looking for a dynamic solution resulting in a table with just the sequential counter. Here is the resulting user defined function that returns a table that you can use in-line with a SELECT statement.</p>
<p>CREATE FUNCTION SequenceTable (@startNum INT, @endNum INT)<br />
RETURNS @tmptbl TABLE ( counter INT )<br />
AS<br />
BEGIN<br />
	WHILE (@startNum &lt;= @endNum)<br />
	BEGIN<br />
		INSERT INTO @tmptbl SELECT @startNum<br />
		SELECT @startNum = @startNum + 1<br />
	END<br />
	RETURN<br />
END</p>
<p>Now you can use it to dynamically return a sequence of numbers:</p>
<p>SELECT * FROM SequenceTable (0, 30)</p>
<p>This was usefully for our purposes to return the next 30 days for a report (to be LEFT JOIN&#039;ed to the data table which might not contain values for each day)</p>
<p>SELECT DATEADD(d, counter, GetDate()) AS SeqDate FROM SequenceTable (0, 30)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JB</title>
		<link>http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-125486</link>
		<dc:creator><![CDATA[JB]]></dc:creator>
		<pubDate>Tue, 29 Mar 2011 08:26:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-125486</guid>
		<description><![CDATA[select top 25  partition_key, ROW_NUMBER() Over(Order By getdate())-1 as slno  from ]]></description>
		<content:encoded><![CDATA[<p>select top 25  partition_key, ROW_NUMBER() Over(Order By getdate())-1 as slno  from</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: naveen7</title>
		<link>http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-115335</link>
		<dc:creator><![CDATA[naveen7]]></dc:creator>
		<pubDate>Mon, 31 Jan 2011 08:30:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-115335</guid>
		<description><![CDATA[---  I think this will help you

create table tblSequence
(
	Id int identity(1,1) primary key,
	Sname varchar(50),
	subject_Name varchar(50)
)

 insert into  tblSequence (Sname,Subject_Name)
 SELECT &#039;C&#039;,&#039;English&#039; union all
 SELECT &#039;A&#039;,&#039;Mathematics&#039; union all
 SELECT &#039;A&#039;,&#039;Science&#039; union all
 SELECT &#039;B&#039;,&#039;Econamics&#039; union all
 SELECT &#039;B&#039;,&#039;Acturian science&#039; union all
 SELECT &#039;B&#039;,&#039;Mathematics&#039; union all
 SELECT &#039;C&#039;,&#039;Mathematics&#039; 

select SName,Subject_Name ,
		Row_Number() over(partition by sname order by id) as RowNumber
from tblSequence]]></description>
		<content:encoded><![CDATA[<p>&#8212;  I think this will help you</p>
<p>create table tblSequence<br />
(<br />
	Id int identity(1,1) primary key,<br />
	Sname varchar(50),<br />
	subject_Name varchar(50)<br />
)</p>
<p> insert into  tblSequence (Sname,Subject_Name)<br />
 SELECT &#8216;C&#8217;,'English&#8217; union all<br />
 SELECT &#8216;A&#8217;,'Mathematics&#8217; union all<br />
 SELECT &#8216;A&#8217;,'Science&#8217; union all<br />
 SELECT &#8216;B&#8217;,'Econamics&#8217; union all<br />
 SELECT &#8216;B&#8217;,'Acturian science&#8217; union all<br />
 SELECT &#8216;B&#8217;,'Mathematics&#8217; union all<br />
 SELECT &#8216;C&#8217;,'Mathematics&#8217; </p>
<p>select SName,Subject_Name ,<br />
		Row_Number() over(partition by sname order by id) as RowNumber<br />
from tblSequence</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-114040</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Tue, 25 Jan 2011 08:45:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-114040</guid>
		<description><![CDATA[Refer method 2
http://beyondrelational.com/blogs/madhivanan/archive/2007/08/27/multipurpose-row-number-function.aspx]]></description>
		<content:encoded><![CDATA[<p>Refer method 2<br />
<a href="http://beyondrelational.com/blogs/madhivanan/archive/2007/08/27/multipurpose-row-number-function.aspx" rel="nofollow">http://beyondrelational.com/blogs/madhivanan/archive/2007/08/27/multipurpose-row-number-function.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kzkataria@gmail.com</title>
		<link>http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-113881</link>
		<dc:creator><![CDATA[kzkataria@gmail.com]]></dc:creator>
		<pubDate>Mon, 24 Jan 2011 17:38:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-113881</guid>
		<description><![CDATA[I need to generate a sequence number for groups of information on a table. 

For example, I have a student table with multiple rows for a student, as below - 

Student	Subject

A	English
A	Mathematics
A	Science
B	Economics
B	Acturian science
C	Mathematics

I need a seq-no to be appended to each of the above records such that the sequence number resets once the student changes - 

Student	Subject	Generated seq-no

A	English	                0
A	Mathematics	1
A	Science	                2
B	Economics	0
B	Acturian science	1
C	Mathematics	0

In short, I&#039;m looking for a sequence genrator that works with a group by sort of a thing. 
Is there a way to do this using SQL]]></description>
		<content:encoded><![CDATA[<p>I need to generate a sequence number for groups of information on a table. </p>
<p>For example, I have a student table with multiple rows for a student, as below &#8211; </p>
<p>Student	Subject</p>
<p>A	English<br />
A	Mathematics<br />
A	Science<br />
B	Economics<br />
B	Acturian science<br />
C	Mathematics</p>
<p>I need a seq-no to be appended to each of the above records such that the sequence number resets once the student changes &#8211; </p>
<p>Student	Subject	Generated seq-no</p>
<p>A	English	                0<br />
A	Mathematics	1<br />
A	Science	                2<br />
B	Economics	0<br />
B	Acturian science	1<br />
C	Mathematics	0</p>
<p>In short, I&#8217;m looking for a sequence genrator that works with a group by sort of a thing.<br />
Is there a way to do this using SQL</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: luis martinez</title>
		<link>http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-111263</link>
		<dc:creator><![CDATA[luis martinez]]></dc:creator>
		<pubDate>Mon, 17 Jan 2011 03:12:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-111263</guid>
		<description><![CDATA[SQL Server 2005:  The Update Statement did not work for me as is, this worked:

DECLARE @id int
set @id = 0
UPDATE mytable SET  id = @id, @id = @id + 1]]></description>
		<content:encoded><![CDATA[<p>SQL Server 2005:  The Update Statement did not work for me as is, this worked:</p>
<p>DECLARE @id int<br />
set @id = 0<br />
UPDATE mytable SET  id = @id, @id = @id + 1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kulwant singh</title>
		<link>http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-84261</link>
		<dc:creator><![CDATA[kulwant singh]]></dc:creator>
		<pubDate>Mon, 16 Aug 2010 08:12:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-84261</guid>
		<description><![CDATA[In a multiuser environment, eg a Departmental store where there are around 20 computers running simultaneously, i need to generate a Primary key for the Invoice Numbers. 
The Invoice Number must be unique,  in a serial and skipping / missing / leaving out  a Number is not acceptable. 

How can this Primary Key be acquired in SQL. Is it Possible?]]></description>
		<content:encoded><![CDATA[<p>In a multiuser environment, eg a Departmental store where there are around 20 computers running simultaneously, i need to generate a Primary key for the Invoice Numbers.<br />
The Invoice Number must be unique,  in a serial and skipping / missing / leaving out  a Number is not acceptable. </p>
<p>How can this Primary Key be acquired in SQL. Is it Possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mahesh</title>
		<link>http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-80046</link>
		<dc:creator><![CDATA[Mahesh]]></dc:creator>
		<pubDate>Tue, 13 Jul 2010 08:55:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-80046</guid>
		<description><![CDATA[Dear Steena,

I tried this statement and it worked. Thanks a lot. Keep Posting.]]></description>
		<content:encoded><![CDATA[<p>Dear Steena,</p>
<p>I tried this statement and it worked. Thanks a lot. Keep Posting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nilesh</title>
		<link>http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-45213</link>
		<dc:creator><![CDATA[Nilesh]]></dc:creator>
		<pubDate>Wed, 31 Dec 2008 02:19:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-45213</guid>
		<description><![CDATA[Hi Pinal,
  Can you share your input and thoughts on this Database Document generator. Here is the sample document
http://www.sqldocumentor.com/sqlserverhtml/sql_server_index.html

Thanks
Nilesh]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,<br />
  Can you share your input and thoughts on this Database Document generator. Here is the sample document<br />
<a href="http://www.sqldocumentor.com/sqlserverhtml/sql_server_index.html" rel="nofollow">http://www.sqldocumentor.com/sqlserverhtml/sql_server_index.html</a></p>
<p>Thanks<br />
Nilesh</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SteenaThomas</title>
		<link>http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-43830</link>
		<dc:creator><![CDATA[SteenaThomas]]></dc:creator>
		<pubDate>Tue, 21 Oct 2008 06:33:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-43830</guid>
		<description><![CDATA[I also have this problem to generate serial number for rows returned by an sql query. I have done this and it solved my problem.

SELECT (ROW_NUMBER() OVER ( ORDER BY fieldname)) AS ID  from tablename]]></description>
		<content:encoded><![CDATA[<p>I also have this problem to generate serial number for rows returned by an sql query. I have done this and it solved my problem.</p>
<p>SELECT (ROW_NUMBER() OVER ( ORDER BY fieldname)) AS ID  from tablename</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hosting</title>
		<link>http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-40455</link>
		<dc:creator><![CDATA[hosting]]></dc:creator>
		<pubDate>Fri, 18 Jul 2008 21:41:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-40455</guid>
		<description><![CDATA[I have tested out: UPDATE order_sequence SET id = id + 1, @id = id + 1 and it is working in generating a sequence.]]></description>
		<content:encoded><![CDATA[<p>I have tested out: UPDATE order_sequence SET id = id + 1, @id = id + 1 and it is working in generating a sequence.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karthickbabu</title>
		<link>http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-30938</link>
		<dc:creator><![CDATA[karthickbabu]]></dc:creator>
		<pubDate>Thu, 03 Jan 2008 05:43:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-30938</guid>
		<description><![CDATA[Hi

        Is it possible to store in a single variable like as below

1,2,3,4 and so on.  Output can be shown in this format.]]></description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>        Is it possible to store in a single variable like as below</p>
<p>1,2,3,4 and so on.  Output can be shown in this format.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shayne Sweeney</title>
		<link>http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-23026</link>
		<dc:creator><![CDATA[Shayne Sweeney]]></dc:creator>
		<pubDate>Tue, 27 Nov 2007 17:48:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-23026</guid>
		<description><![CDATA[If this question is about creating a &quot;sequence&quot; in MS SQL - I&#039;ve  wanted this functionality as well and came up with the following solution.

Here&#039;s what I did...

Create a table with one column, I chose &quot;id&quot; as an &quot;int&quot; type.

Create a stored procedure, mine was &quot;reserve_ordernumber&quot; and was short and sweet.

DECLARE @id int
UPDATE order_sequence SET id = id + 1, @id = id + 1
SELECT @id AS &#039;id&#039;

Voila! - You can then call the procedure and have it return a unique integer from a linear number sequence.

If stored procedures aren&#039;t your thing, you could really do this a number of ways by mutating things here and there. (e.g. trigger (instead-of), scalar value function, etc...)

Hope that helps.]]></description>
		<content:encoded><![CDATA[<p>If this question is about creating a &#8220;sequence&#8221; in MS SQL &#8211; I&#8217;ve  wanted this functionality as well and came up with the following solution.</p>
<p>Here&#8217;s what I did&#8230;</p>
<p>Create a table with one column, I chose &#8220;id&#8221; as an &#8220;int&#8221; type.</p>
<p>Create a stored procedure, mine was &#8220;reserve_ordernumber&#8221; and was short and sweet.</p>
<p>DECLARE @id int<br />
UPDATE order_sequence SET id = id + 1, @id = id + 1<br />
SELECT @id AS &#8216;id&#8217;</p>
<p>Voila! &#8211; You can then call the procedure and have it return a unique integer from a linear number sequence.</p>
<p>If stored procedures aren&#8217;t your thing, you could really do this a number of ways by mutating things here and there. (e.g. trigger (instead-of), scalar value function, etc&#8230;)</p>
<p>Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jesse</title>
		<link>http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-21778</link>
		<dc:creator><![CDATA[Jesse]]></dc:creator>
		<pubDate>Wed, 21 Nov 2007 21:19:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/11/21/sql-server-generate-incremented-linear-number-sequence/#comment-21778</guid>
		<description><![CDATA[I doubt this is the answer your question asker was looking for.

Most likely the asker wanted to know how to do this in a table.  in a table, you would use an identity column, not a while loop.]]></description>
		<content:encoded><![CDATA[<p>I doubt this is the answer your question asker was looking for.</p>
<p>Most likely the asker wanted to know how to do this in a table.  in a table, you would use an identity column, not a while loop.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

