I have a table with a column of type VARCHAR. I want to parse the column into 4 VARCHAR values.It would be great to do this with a single function or procedure since the parsing logic is context sensitive (e.g. You gotta find Token1 before you can find Token2, etc..). Inefficent to use 4 separate UDFs in this case.I've thought myself into a box using a function that returns a single row with 4 values. It works well like:SELECT * from MyUDF('Mytexthere') -- But there's no way to specify a column of another table as an argument.What I'd like to end up with is:Select MyText, Token1, Token2, Token3, Token4 FROM MyTable
Any ideas that would help with this problem appreciated. I think I'm gonna start working on the 4 UDFs meanwhile.Sam