wordomouth
Programmer
Hi all. I have an application where I have a proc in an outer loop that returns a large recordset and then within that loop I have another proc that gets hit a ton of time because for each record in the outer loop I have to pull detail records in for the header record part number. So I turned on SQL Profiler and I see the proc getting called over and over again and it hangs the whole system. How else can I handle something like this in my ASP page to show information from the header and then fetch based on the each header record the detail from another table using the Part Number? Its not easy combining the 2 queries into 1 set because they are complex queries. I was thinking could I use a disconnected recordset or something. Need help big time here thanks all.