Hey peeps.
Thanks in advance!
I have a Function in SQL server 2008 which splits a string based on the char i give. Lovely and simple. When I pass in:
Content1,Content2,Content3
I can create a lovely temp table with those values in a single column split by the comma (,).
Now, that's all good, but I now need to split the following into a table, but with 2 columns. "Name" and "Order"
Content1:1,Content2:2,Content3:3 ...
Anyone got anything to do this? Or a better way to pass the data in? If not, i'm going to either run a separate stored proc for each of the items. I would rather not. But if I have to, I have to! Or, create a temp table from the temp table.. Messy i'd say!
Thanks again, in advance. James