Viewing 15 posts - 721 through 735 (of 1,413 total)
A middle way could be to use the very nice integer division Jeff uses for the time parts but then use framework functions to handle type conversions and calculation. Supposedly,...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
One "brute force" way to do this would be to expand all the date ranges and use the set operator EXCEPT to remove the (also expanded) gaps. Then the results...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
To generate a sequence why not use an explicit virtual table of the numbers themselves? Here's a .txt file with a sql script and it defines a tvf called dbo.fn1k...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
Yes plenty of time. Lots of time. Eons and eons. More than Ten Centuries 🙂 Enough to fill BIGINT. It could be dialed back as appropriate.
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
The place to start imo is with this very awesome article from Jeff. I agree the code is not efficient. The key is to have a 'row goal' in...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
There were a few issues with the data which required fixing before a query could run. The VARCHAR columns require a character length, in this case I made them both...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
Hi Lonnie, thanks for the follow up. Since inside the WHILE loop the variable @i represents the theoretical cycle, perhaps it makes sense to change the WHERE clause to
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
Viewing 15 posts - 721 through 735 (of 1,413 total)