Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Never ending query

Author  Topic 

berinder
Starting Member

18 Posts

Posted - 2001-09-03 : 08:25:39
I have a query that runs and runs, my obvious thought was there was a never ending loop in my asp-code but when i runned the sp in query analyzer it never finished. Someone taht can spot why this code would run, and run and run?

CREATE Procedure sp_adm_getSoldPerDayFVH
As
set nocount on
SELECT Date, COUNT(*) AS no, SUM(Price) AS totsum
FROM Booking
WHERE amadeus<>'' AND [name] NOT LIKE '%test%' AND amadeus In
(
SELECT logExtrainfo
FROM travelstartver1.dbo.crm_logging
WHERE (logCategoryID = 6) AND (logValue = 'flygvaruhuset')
UNION
SELECT logExtrainfo
FROM travelstartver1.dbo.crm_loggingOld
WHERE (logCategoryID = 6) AND (logValue = 'flygvaruhuset')
)
GROUP BY Date
ORDER BY Date Asc
return




   

- Advertisement -