• You can use a splitter function like this one: http://www.sqlservercentral.com/articles/Tally+Table/72993/

    -- Gianluca Sartori