GSquared (2/6/2008)
Yet again, I have to say this is clever, but a Numbers table is better.Yes, if you for some reason need to create a list of sequential numbers on the fly, this CTE is probably the fastest means of doing so. It certainly is at least A fast means of doing so. But having an actual Numbers table, with a clustered index on it, is MUCH better.
(Yes, this is the third or fourth time I've written on this exact subject. But for whatever reason, it keeps coming up.)
Spot on, G... didn't see your post as I was writting mine.
--Jeff Moden
Change is inevitable... Change for the better is not.