Ex.
Column 1:
| word1 word2 word3 word4 |
to
Col 1: Col 2: Col 3: Col 4:
| word1 | word2 | word3 | word |
How about this?
Create Table AllData (Column0 varchar(500))
Insert Into AllData Values ('word1 word2 word3 word4')
Select parsename(replace(replace(replace([Column0],' ',' '),' ',' '),' ','.'), 4) [Col1],
parsename(replace(replace(replace([Column0],' ',' '),' ',' '),' ','.'), 3) [Col2],
parsename(replace(replace(replace([Column0],' ',' '),' ',' '),' ','.'), 2) [Col3],
parsename(replace(replace(replace([Column0],' ',' '),' ',' '),' ','.'), 1) [Col4]
from AllData