Viewing 4 posts - 1 through 4 (of 4 total)
Thank you for ur patient
here it is
StmtText
------------------------------
SET STATISTICS PROFILE ON
(1 row(s) affected)
StmtText
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
DECLARE @dStart AS DATETIME
DECLARE @dEnd AS DATETIME
DECLARE @nEAF AS INTEGER
SET @dStart = '03/03/2003 07:00 AM'
SET...
August 10, 2005 at 7:49 am
I think Mr.Shawn has not seen my Code? This is my hardcoded query
SELECT COUNT(HeatNumber) AS HeatsCount,
Sum(dbo.fnMS_PR_GetTorchWeightForHeat(HeatNumber)) AS Tons
FROM HeatTable
WHERE TapTime BETWEEN DATEADD(hh, -2, '03/03/2003 07:00 AM') AND
...
August 10, 2005 at 7:28 am
It takes more time. Let me see the query plan.This is my code inside that function
SELECT COUNT(HeatNumber) AS HeatsCount,
Sum(dbo.fnMS_PR_GetTorchWeightForHeat(HeatNumber)) AS Tons
FROM HeatTable
WHERE TapTime BETWEEN DATEADD(hh, -2, @dStart) AND...
August 10, 2005 at 7:01 am
Viewing 4 posts - 1 through 4 (of 4 total)