K
kevlo
Unregistered / Unconfirmed
GUEST, unregistred user!
storeprocedure:'CREATE PROCEDURE HLSFR_SltHstr8 @DateStart DateTime,@DateEnd DateTime AS
SELECT Dbo_hlsfr_part.PartNo, Dbo_hlsfr_part.PartName,Dbo_hlsfr_part.PartCoNo, Dbo_hlsfr_part.PartJoNo,Dbo_hlsfr_history.HstrDate HstrDate ,Dbo_hlsfr_history.DayCnt DayCnt, Dbo_hlsfr_history.DayOkCnt DayOkCnt, Dbo_hlsfr_history.DayOutCnt DayOutCnt, Dbo_hlsfr_history.AllCnt AllCnt, Dbo_hlsfr_history.AllOkCnt AllOkCnt, Dbo_hlsfr_history.AllOutCnt AllOutCnt, Dbo_hlsfr_part.PartJoCnt PartJoCnt, (AllCnt-AllOutCnt) AllLeaveCnt, AllCnt-PartJoCnt AllDff, Dbo_hlsfr_Part.PartWrkCnt PartWrkCnt, Dbo_hlsfr_History.DayTimeCnt PartTimeCnt,Dbo_hlsfr_part.PartMemo PartMemo
FROM dbo.HLSFR_HISTORY Dbo_hlsfr_history, dbo.HLSFR_PART Dbo_hlsfr_part
WHERE (Dbo_hlsfr_part.PartID = Dbo_hlsfr_history.PartID)and
(Dbo_hlsfr_history.HstrDate BETWEEN @DateStart AND @DateEnd) and
(Dbo_hlsfr_part.PartTimeCnt=8)
order by Dbo_hlsfr_part.partNo,Dbo_hlsfr_history.HstrDate'
我在sql server7.0運行沒有問題卻用Delphi5連不上Error Message:'Could not found stored procedure'請各位高手指教
SELECT Dbo_hlsfr_part.PartNo, Dbo_hlsfr_part.PartName,Dbo_hlsfr_part.PartCoNo, Dbo_hlsfr_part.PartJoNo,Dbo_hlsfr_history.HstrDate HstrDate ,Dbo_hlsfr_history.DayCnt DayCnt, Dbo_hlsfr_history.DayOkCnt DayOkCnt, Dbo_hlsfr_history.DayOutCnt DayOutCnt, Dbo_hlsfr_history.AllCnt AllCnt, Dbo_hlsfr_history.AllOkCnt AllOkCnt, Dbo_hlsfr_history.AllOutCnt AllOutCnt, Dbo_hlsfr_part.PartJoCnt PartJoCnt, (AllCnt-AllOutCnt) AllLeaveCnt, AllCnt-PartJoCnt AllDff, Dbo_hlsfr_Part.PartWrkCnt PartWrkCnt, Dbo_hlsfr_History.DayTimeCnt PartTimeCnt,Dbo_hlsfr_part.PartMemo PartMemo
FROM dbo.HLSFR_HISTORY Dbo_hlsfr_history, dbo.HLSFR_PART Dbo_hlsfr_part
WHERE (Dbo_hlsfr_part.PartID = Dbo_hlsfr_history.PartID)and
(Dbo_hlsfr_history.HstrDate BETWEEN @DateStart AND @DateEnd) and
(Dbo_hlsfr_part.PartTimeCnt=8)
order by Dbo_hlsfr_part.partNo,Dbo_hlsfr_history.HstrDate'
我在sql server7.0運行沒有問題卻用Delphi5連不上Error Message:'Could not found stored procedure'請各位高手指教