Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
I need to create a table with two columns. Basically, the inputs would be two dates (Start Date and End Date), and the created table would contain two columns with the date range broken out in 2 week intervals. So if my date range was 12/4/2005 to 12/31/2005, the table would look like below:START_DATE END_DATE12/4/2005 12/17/200512/18/2005 12/31/2005I know I need a loop of some sort, does anyone have any idea as to how I could do this?