Home Forums SQL Server 2008 T-SQL (SS2K8) [Help Needed] Looking for a solution for this case RE: [Help Needed] Looking for a solution for this case

  • Sol, Just looking at your solution It works well except that it doesnt return the Root node value, so I would suggest a Left Outer join on the Insert into @ty and it should all be good.

    _________________________________________________________________________
    SSC Guide to Posting and Best Practices