SQL Server 2000 sp3 升级到sp4后遇到的问题
select c.accnt_no,c.accnt_chi as accntname,c.big_no,c.drcr,case left(c.big_no,1) when 'a' then 0 when 'b' then 0 when 'c' then 0 else 1 end as type
from voucher_detail a,voucher b,accnt c
where c.grade>=9 and a.company=b.company and b.company=c.company and a.company='SM' and a.accnt_no=c.accnt_no
and ((isnull(c.AccGroupID,'')='0002' or isnull(b.AccGroupID,'')='') or
a.deptno in('060400','060405','06040500','06040501','06040502','06040503','06040504','06040505','06040506','06040507','06040508','06040509','06040510','06040511'))
and a.accnt_no<>'3131' and left(a.accnt_no,10)>='1911001001' and left(a.accnt_no,10)<='1911001012' and a.obs<>1 and c.isdetail=1
group by c.accnt_no,c.accnt_chi,c.big_no,c.drcr order by type,c.accnt_no
上面的语句在sp3下查询分析器里很快执行并得到结果,但sp4下查询分析器里执行需要近9分钟才得到结果,导致应用软件在这两种补丁下迥然不同的结果!如何让sp4下的该SQL能像sp3下那样很快执行啊?
是不是还有其它sp4的小编号补丁没有打啊?有没有朋友遇到过类似问题
http://support.microsoft.com/kb/891866/
慢比您预期当您尝试分析查询 SQL Server 2000 中运行查询
感觉可能需要打这个补丁,但官网上没提供下载,郁闷啊!
有朋友能搞到这个补丁吗?