Following script is a quick and easy way to generate 10000 numbers . You can change the number to generate howmany ever numbers you want.
2013-09-17 (first published: 2013-09-06)
1,444 reads
sawmeonline, 2013-04-17 (first published: 2013-04-03)
Following script is a quick and easy way to generate 10000 numbers . You can change the number to generate howmany ever numbers you want.
WITH Number AS (SELECT 1 AS n UNION ALL SELECT n + 1 FROM Number WHERE n < 10000) SELECT n FROM Number OPTION ( MAXRECURSION 10000 );
Read 6,275 times
(3 in last 30 days)
Join the discussion and add your comment
2013-09-17 (first published: 2013-09-06)
1,444 reads
Recursive CTEs can be confusing and scary, so examining some non-standard examples may cast light upon these shadowy demons.
2014-07-25 (first published: 2012-07-17)
26,960 reads
"Counting" is essential to many high performance code techniques. SQL Server MVP, Jeff Moden, shows us how to make sure that we're "Counting" and not "Crippling" our trick-code.
Finding circular references that are stopping your CTE from working.
2013-09-02 (first published: 2011-01-31)
19,504 reads
A Recursion function that was used to apply a Rate percentage to a base amount for the reqested number of times.
2010-10-28 (first published: 2010-10-13)
565 reads
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy