Hello Everybody
I run the following query against to identical databases. Execution
time on the first DB is 0 seconds, on the other 6 seconds!
SELECT dbo.HRMABZ.EMPK EY , dbo.HRMABZ.CONN UMB
, dbo.HRM_CALENDE R.Datum, dbo.HRMABZ.ABZT XT
FROM dbo.HRM_CALENDE R INNER JOIN dbo.HRMABZ
ON dbo.HRM_CALENDE R.Datum >= dbo.HRMABZ.ABZD ATF
AND dbo.HRM_CALENDE R.Datum <= dbo.HRMABZ.ABZD ATT
WHERE (dbo.HRMABZ.ABZ TECH = 'N')
AND (dbo.HRMABZ.ABZ LDLT = 'N')
AND (dbo.HRM_CALEND ER.Valid = 1)
I tried to analyze to query execution in the execution plan and found
two different arguments in a 'nested loop / inner join' which I dont
understand. The nested loop does consume most of the time:
On the fast Server the argument says:
'Outer References:([HRMABZ].[ABZDATT],[HRMABZ].[ABZDATF])'
On the slow server the argument says:
'WHERE: ([HRM_Calender].[Datum]>=[HRMABZ].[ABZDATF] AND
[HRM_Calender].[]<=[HRMABZ].[ABZDATT])'
Additional information for the two databases:
- Slow database runs on a SQL2000 SP3a English, W2K SP3
- Fast database runs on a SQL2000 SP3a German, W2k SP3
Can somebody explain me the difference between the two execution plans
and how I could force the slow database acting the same way as the
fast one does?
Thank you
Thomi
I run the following query against to identical databases. Execution
time on the first DB is 0 seconds, on the other 6 seconds!
SELECT dbo.HRMABZ.EMPK EY , dbo.HRMABZ.CONN UMB
, dbo.HRM_CALENDE R.Datum, dbo.HRMABZ.ABZT XT
FROM dbo.HRM_CALENDE R INNER JOIN dbo.HRMABZ
ON dbo.HRM_CALENDE R.Datum >= dbo.HRMABZ.ABZD ATF
AND dbo.HRM_CALENDE R.Datum <= dbo.HRMABZ.ABZD ATT
WHERE (dbo.HRMABZ.ABZ TECH = 'N')
AND (dbo.HRMABZ.ABZ LDLT = 'N')
AND (dbo.HRM_CALEND ER.Valid = 1)
I tried to analyze to query execution in the execution plan and found
two different arguments in a 'nested loop / inner join' which I dont
understand. The nested loop does consume most of the time:
On the fast Server the argument says:
'Outer References:([HRMABZ].[ABZDATT],[HRMABZ].[ABZDATF])'
On the slow server the argument says:
'WHERE: ([HRM_Calender].[Datum]>=[HRMABZ].[ABZDATF] AND
[HRM_Calender].[]<=[HRMABZ].[ABZDATT])'
Additional information for the two databases:
- Slow database runs on a SQL2000 SP3a English, W2K SP3
- Fast database runs on a SQL2000 SP3a German, W2k SP3
Can somebody explain me the difference between the two execution plans
and how I could force the slow database acting the same way as the
fast one does?
Thank you
Thomi
Comment