Viewing 4 posts - 1 through 4 (of 4 total)
I would suggest looking at Jeff Moden's function
Tally OH! An Improved SQL 8K “CSV Splitter” Function at http://www.sqlservercentral.com/articles/Tally+Table/72993/
August 26, 2016 at 3:23 am
Probably the best you will find out there: http://www.sqlservercentral.com/articles/Tally+Table/72993/
February 10, 2016 at 3:01 pm
Check the article http://www.sqlservercentral.com/articles/Tally+Table/72993/
August 24, 2012 at 12:17 pm
[font="Courier New"][/font]DECLARE @BatchStart datetime = GETDATE(), @StageStart datetime, @Iteration int = 0, @Iterations int = 5
PRINT 'Batch start: ' + CONVERT(varchar(12), DATEADD(ms, DATEDIFF(ms, @BatchStart, @BatchStart), 0), 114)
WHILE @Iteration <> @Iterations...
August 21, 2012 at 12:22 pm
Viewing 4 posts - 1 through 4 (of 4 total)