JXStern
3/16/2007 5:30:00 PM
On Fri, 16 Mar 2007 06:26:08 -0700, RickSean
<RickSean@discussions.microsoft.com> wrote:
>The SP works fine against a smaller database but it continuously runs for a
>large database.
Can easily happen for a dozen reasons, the same code may generate a
very different plan when given different data and statistics, you
probably have to do a lot more physical IO for large data, you may be
exceeding RAM on some intermediate processing with slows things a
*lot*, missing indexes can be no problem for small data and big
problems on big data, the small data may not have all relationships so
some (slow) data paths may not have been noticed, ...
Turn on profiler and maybe you can see something. Check the current
locks, maybe that will suggest something.
J.