I have to display Child records and its Sub-Child Records stored in the database based on the Input values of ParentID and the Child record Level.This Child records can go upto Nth Level in an Hierarchical form. For this I have considered a Temporary table and a while loop, with which I am facing performance problems.The data is in million. I am looking for a replacement of the Temporary table for the above problem. Thanks raj
How about a non temporary table?. Same performance problems? Luis Martin Moderator SQL-Server-Performance.com All postings are provided “AS IS†with no warranties for accuracy.