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_getSoldPerDayFVHAs 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