Hi,
I have this update routine that takes 1 1/2 hours to run in Sql Server 2000.
update W
set W.IP=X.IP
from wow.dbo.CSG_SBB_HSE_HSL_ACP_EQP_BASE W
inner join
(
SELECT A.Mac,A.Ip
FROM cdvsupport.dbo.tb_CmtsPollCm A
INNER JOIN cdvsupport.dbo.tb_CmtsPollIfc B ON A.CmtsKey = B.CmtsKey AND A.IfcSnmpIxUs = B.IfcSnmpIx
INNER JOIN cdvsupport.dbo.tb_CmtsPollSys C ON A.CmtsKey = C.CmtsKey
where A.CmtsKey is not null and B.CmtsKey is not null and C.CmtsKey is not null
and A.IfcSnmpIxUS is not null and B.IfcSnmpIx is not null and A.Mac is not null
) X
on W.Mac=X.Mac
The tables all have about 2 million records. Mac is a non clustered index. Is there any way to speed this up? Thanks, Paul
I have this update routine that takes 1 1/2 hours to run in Sql Server 2000.
update W
set W.IP=X.IP
from wow.dbo.CSG_SBB_HSE_HSL_ACP_EQP_BASE W
inner join
(
SELECT A.Mac,A.Ip
FROM cdvsupport.dbo.tb_CmtsPollCm A
INNER JOIN cdvsupport.dbo.tb_CmtsPollIfc B ON A.CmtsKey = B.CmtsKey AND A.IfcSnmpIxUs = B.IfcSnmpIx
INNER JOIN cdvsupport.dbo.tb_CmtsPollSys C ON A.CmtsKey = C.CmtsKey
where A.CmtsKey is not null and B.CmtsKey is not null and C.CmtsKey is not null
and A.IfcSnmpIxUS is not null and B.IfcSnmpIx is not null and A.Mac is not null
) X
on W.Mac=X.Mac
The tables all have about 2 million records. Mac is a non clustered index. Is there any way to speed this up? Thanks, Paul