all groups > sql server programming > december 2003 >
You're in the

sql server programming

group:

Query takes too long



Query takes too long Nesaar Banderker
12/22/2003 9:40:25 PM
sql server programming: I have a sql script as shown below. This take about 9 hours to run.
However, when i remove the "Link the duplicate entries that would have
been missed since the grouping into #oxpsum" code (to the "Update linked
rows to dbt_oxp_history" code) it takes about 23 minutes to run. If i
then run the "Link duplicate entries" code on its own it takes a total
of 5 minutes to run. So together the entire script should not take more
than 30 minutes to run.

Any ideas?

Thanks
N

*** Sent via Developersdex http://www.developersdex.com ***
Re: Query takes too long Foo Man Chew
12/23/2003 1:49:15 AM
[quoted text, click to view]

I have no idea what you're on about. You didn't include a query, and even
if you had, it is impossible for us to spot problems with it unless you also
show schema, sample data, and desired results.

AddThis Social Bookmark Button