Click here to Skip to main content
Click here to Skip to main content
Articles » Database » Database » General » Alternatives
 
Alternatives

Tagged as

Go to top

Using Common Table Expressions and Recursion in SQL Server 2008

, 28 Apr 2010
By using recursion (and CROSS JOINS), you can generate data without looping or hard-coding INSERT statements into a temporary table.In the example below, you can use recursion to generate a week of scheduling data for three employees. -- Count variable, set to 7 for a week's worth of...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Gordon Kushner
Software Developer (Senior)
United States United States
No Biography provided

| | Privacy | Mobile
Web01 | 2.8.140905.1 | Last Updated 28 Apr 2010
Article Copyright 2009 by Gordon Kushner
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid