Sometimes I run into a situation, where I need the ability to separate stings into single peaces and additionally I need that result as a table. The T-SQL Code for separating a string is no secret and to build this result in a return table is also quite easy. The needed UDF function, called Split(), which do that for us gets a string to separate and the separator as input parameters and returns a table with the parts and positions as rows like the following figure shows :