R
RobinFinlow
Please help! Does anyone have any ideas ?
Due to requirement changes I needed to change a query, so I tested it in
access and this query return in millisecs.
However from ADO (Delphi I'm sorry to say) the same query launches and send
my Dual Proc machione into 1 cpu @ 100% and never returns.
SELECT TOP 500 inputdata.*, Specialties.Code, Specialties.DescriptionMain,
Specialties.DescriptionTreatment
FROM (InputData INNER JOIN Specialties ON inputdata.Specialty =
Specialties.Code) INNER JOIN InputData AS InputData_1 ON
(inputdata.AuditInputId = InputData_1.AuditInputId) AND
(inputdata.EpisodeNumber = InputData_1.EpisodeNumber)
WHERE ( (inputdata.AuditInputId=9) and (inputdata.auditrecord=0) and
(InputData_1.Auditrecord=1) );
Due to requirement changes I needed to change a query, so I tested it in
access and this query return in millisecs.
However from ADO (Delphi I'm sorry to say) the same query launches and send
my Dual Proc machione into 1 cpu @ 100% and never returns.
SELECT TOP 500 inputdata.*, Specialties.Code, Specialties.DescriptionMain,
Specialties.DescriptionTreatment
FROM (InputData INNER JOIN Specialties ON inputdata.Specialty =
Specialties.Code) INNER JOIN InputData AS InputData_1 ON
(inputdata.AuditInputId = InputData_1.AuditInputId) AND
(inputdata.EpisodeNumber = InputData_1.EpisodeNumber)
WHERE ( (inputdata.AuditInputId=9) and (inputdata.auditrecord=0) and
(InputData_1.Auditrecord=1) );