I have a query run from a Delphi application that suddenly started timing out last week after running perfectly for months. further more when it runs it slows the server to a crawl leaving other users believe the system has crash Running from the Management Studio I stop the query after over 5 minutes of spinning Server id SqlExpress 2008 R2
The now offending query
SELECT *
FROM SignelOutilsListeJobs_View4
WHERE (CreatedDate > (GETDATE() - 365))
To make it interesting here is the time required & rows return when I just change the number of days back. Activity monitor does not seem to show more than the query is running
SELECT *
FROM SignelOutilsListeJobs_View4 -- 00.00.02 38882 ROWS
SELECT *
FROM SignelOutilsListeJobs_View4
WHERE (CreatedDate > (GETDATE() - 600)) -- 00.00.02 16217 ROWS
SELECT *
FROM SignelOutilsListeJobs_View4
WHERE (CreatedDate > (GETDATE() - 500)) -- 00.00.02 13013 ROWS
SELECT *
FROM SignelOutilsListeJobs_View4
WHERE (CreatedDate > (GETDATE() - 200)) -- 00.00.12 4118 ROWS
So I am left wondering what is happening here? Any ideas?
Thanks