Splitting comma delimited results into rows

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • programmher
    New Member
    • Jan 2014
    • 19

    Splitting comma delimited results into rows

    Here is my code:
    Code:
    SELECT CData.value('(/fields/Genres)[1]', 'varchar(255)')FROM Categories WHERE ReqNum = 9281
    Here are my results:
    Code:
    King, Saul, Robb
    I need the results to display like this:

    Code:
    King
    Saul
    Robb
    How do I modify my script so my results display in rows instead of the comma delimited fields?
  • ck9663
    Recognized Expert Specialist
    • Jun 2007
    • 2878

    #2
    Here find one here...

    Good Luck!!!

    ~~ CK

    Comment

    Working...