<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://code.msdn.microsoft.com/rss.xsl"?><rss version="2.0"><channel><title>SQL Sequence Generator</title><link>http://code.msdn.microsoft.com/SQLSequence/Project/ProjectRss.aspx</link><description>This TVF generates a contiguous sequence of integers.  Useful for generating test data, populating calendars, etc.</description><item><title>UPDATED RELEASE: SqlSequence.sql (Feb 17, 2008)</title><link>http://code.msdn.microsoft.com/SQLSequence/Release/ProjectReleases.aspx?ReleaseId=400</link><description>Use it like this&lt;br /&gt;&lt;br /&gt;select Seq.Value&lt;br /&gt;from Utils.Sequence&amp;#40;1,1000&amp;#41; seq&lt;br /&gt;&lt;br /&gt;or &lt;br /&gt;&lt;br /&gt;select dateadd&amp;#40;d,Seq.Value,&amp;#39;2000-01-01&amp;#39;&amp;#41; d&lt;br /&gt;from Utils.Sequence&amp;#40;1,2000&amp;#41; seq&lt;br /&gt;&lt;br /&gt;to generate a calendar.&lt;br /&gt;&lt;br /&gt;David</description><author></author><pubDate>Wed, 25 Feb 2009 20:26:38 GMT</pubDate><guid isPermaLink="false">UPDATED RELEASE: SqlSequence.sql (Feb 17, 2008) 20090225P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/SQLSequence/Wiki/View.aspx?title=Home&amp;version=6</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Resource Page Description&lt;/b&gt;&lt;br /&gt;This TVF generates a contiguous sequence of integers.  Useful for generating test data, populating calendars, etc.
&lt;br /&gt; &lt;br /&gt;This is a Table-Valued User Defined Function to generate all the integers between two endpoints.  It's surprisingly fast, easilly beating my best effors at writing a CLR UDF to do this.&lt;br /&gt; &lt;br /&gt;Use it like this&lt;br /&gt; &lt;br /&gt;select Seq.Value&lt;br /&gt;from Utils.Sequence(1,1000) seq&lt;br /&gt; &lt;br /&gt;or &lt;br /&gt; &lt;br /&gt;select dateadd(d,Seq.Value,'2000-01-01') d&lt;br /&gt;from Utils.Sequence(1,2000) seq&lt;br /&gt; &lt;br /&gt;to generate a calendar.&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;NB: this is not a replacement for IDENTITY columns or a oracle sequence work-alike.&lt;br /&gt; &lt;br /&gt;NB2: This query uses a stack of Common Table Expressions to generate the numbers, and the original implementation is credit to MVP's Steve Kass and Itzik Ben-Gan.&lt;br /&gt; &lt;br /&gt;David&lt;br /&gt;
&lt;/div&gt;</description><author>dbrowne</author><pubDate>Wed, 30 Apr 2008 22:25:28 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080430P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/SQLSequence/Wiki/View.aspx?title=Home&amp;version=5</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Resource Page Description&lt;/b&gt;&lt;br /&gt;This TVF generates a contiguous sequence of integers.  Useful for generating test data, populating calendars, etc.
&lt;br /&gt; &lt;br /&gt;This is a Table-Valued User Defined Function to generate all the integers between two endpoints.  It's surprisingly fast, easilly beating my best effors at writing a CLR UDF to do this.&lt;br /&gt; &lt;br /&gt;Use it like this&lt;br /&gt; &lt;br /&gt;select Seq.Value&lt;br /&gt;from Utils.Sequence(1,1000) seq&lt;br /&gt; &lt;br /&gt;or &lt;br /&gt; &lt;br /&gt;select dateadd(d,Seq.Value,'2000-01-01') d&lt;br /&gt;from Utils.Sequence(1,2000) seq&lt;br /&gt; &lt;br /&gt;to generate a calendar.&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;NB: this is not a replacement for IDENTITY columns or a oracle sequence work-alike.&lt;br /&gt; &lt;br /&gt;NB2: This query uses a stack of Common Table Expressions to generate the numbers, and the original implementation is credit to MVP's Credit to Steve Kass and Itzik Ben-Gan.&lt;br /&gt; &lt;br /&gt;David&lt;br /&gt;
&lt;/div&gt;</description><author>dbrowne</author><pubDate>Wed, 30 Apr 2008 22:25:00 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080430P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/SQLSequence/Wiki/View.aspx?title=Home&amp;version=4</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Resource Page Description&lt;/b&gt;&lt;br /&gt;This TVF generates a contiguous sequence of integers.  Useful for generating test data, populating calendars, etc.
&lt;br /&gt; &lt;br /&gt;This is a Table-Valued User Defined Function to generate all the integers between two endpoints.  It's surprisingly fast, easilly beating my best effors at writing a CLR UDF to do this.&lt;br /&gt; &lt;br /&gt;Use it like this&lt;br /&gt; &lt;br /&gt;select Seq.Value&lt;br /&gt;from Utils.Sequence(1,1000) seq&lt;br /&gt; &lt;br /&gt;or &lt;br /&gt; &lt;br /&gt;select dateadd(d,Seq.Value,'2000-01-01') d&lt;br /&gt;from Utils.Sequence(1,2000) seq&lt;br /&gt; &lt;br /&gt;to generate a calendar.&lt;br /&gt; &lt;br /&gt; &lt;br /&gt;NB: this is not a replacement for IDENTITY columns or a oracle sequence work-alike.&lt;br /&gt; &lt;br /&gt;David&lt;br /&gt;
&lt;/div&gt;</description><author>dbrowne</author><pubDate>Mon, 18 Feb 2008 19:40:29 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080218P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/SQLSequence/Wiki/View.aspx?title=Home&amp;version=3</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Resource Page Description&lt;/b&gt;&lt;br /&gt;This TVF generates a contiguous sequence of integers.  Useful for generating test data, populating calendars, etc.
&lt;br /&gt; &lt;br /&gt;This is a Table-Valued User Defined Function to generate all the integers between two endpoints.  It's surprisingly fast, easilly beating my best effors at writing a CLR UDF to do this.&lt;br /&gt; &lt;br /&gt;Use it like this&lt;br /&gt; &lt;br /&gt;select Seq.Value&lt;br /&gt;from Utils.Sequence(1,1000) seq&lt;br /&gt; &lt;br /&gt;or &lt;br /&gt; &lt;br /&gt;select dateadd(d,Seq.Value,'2000-01-01') d&lt;br /&gt;from Utils.Sequence(1,2000) seq&lt;br /&gt; &lt;br /&gt;to generate a calendar.&lt;br /&gt; &lt;br /&gt;David&lt;br /&gt;
&lt;/div&gt;</description><author>dbrowne</author><pubDate>Mon, 18 Feb 2008 18:43:36 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080218P</guid></item><item><title>UPDATED WIKI: Home</title><link>http://code.msdn.microsoft.com/SQLSequence/Wiki/View.aspx?title=Home&amp;version=2</link><description>&lt;div class="wikidoc"&gt;
&lt;b&gt;Resource Page Description&lt;/b&gt;&lt;br /&gt;This TVF generates a contiguous sequence of integers.  Useful for generating test data, populating calendars, etc.
&lt;br /&gt; &lt;br /&gt;This is a Table-Valued User Defined Function to generate all the integers between two endpoints.  It's surprisingly fast, easilly beating my best effors at writing a CLR UDF to do this.&lt;br /&gt;
&lt;/div&gt;</description><author>dbrowne</author><pubDate>Mon, 18 Feb 2008 06:18:12 GMT</pubDate><guid isPermaLink="false">UPDATED WIKI: Home 20080218A</guid></item><item><title>CREATED RELEASE: SqlSequence.sql (Feb 17, 2008)</title><link>http://code.msdn.microsoft.com/SQLSequence/Release/ProjectReleases.aspx?ReleaseId=400</link><description>Use it like this&lt;br /&gt;&lt;br /&gt;select Seq.Value&lt;br /&gt;from Utils.Sequence&amp;#40;1,1000&amp;#41; seq&lt;br /&gt;&lt;br /&gt;or &lt;br /&gt;&lt;br /&gt;select dateadd&amp;#40;d,Seq.Value,&amp;#39;2000-01-01&amp;#39;&amp;#41; d&lt;br /&gt;from Utils.Sequence&amp;#40;1,2000&amp;#41; seq&lt;br /&gt;&lt;br /&gt;to generate a calendar.&lt;br /&gt;&lt;br /&gt;David</description><author></author><pubDate>Mon, 18 Feb 2008 03:52:41 GMT</pubDate><guid isPermaLink="false">CREATED RELEASE: SqlSequence.sql (Feb 17, 2008) 20080218A</guid></item></channel></rss>