Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin.
Search for scripts directly from SSMS, and instantly access any saved scripts in your
SSC briefcase from the favorites tab.
Download now (direct download link)
Thank this author by sharing:
By Rafal Skotak,
Unfortunatelly the base script is able to generate sequences of limited length due to SQL Server 2005 limit for 32767 reqursion levels, so for longer sequences I had to fall back on 'cross join'.