strange SQL server report performance problem related with update statistics -


I have received a complex report using the reporting service, the report connects to the SQL 2005 database, and several store processes Calls and works. It works fine in the beginning, but after a few months (the data increases), it goes into the timeout error.

I have created some indexes to improve the performance, but it is strange that it works after the index, but the same error is excluded the next day. Then I try to update the data on the database, it works again (time of the query is running 10 times). But then, stop working next day.

Now, the temporary solution is that I run updated statistics every hour but I did not get a proper explanation for this behavior. The database is not too busy, many data will not be updated for one day How can the update statistics differ so much?

I suspect that you have to sniff the parameter updating the data to discard all the query plans only. Forces it, so it works for time

  create PROC dbo.MyReport @ SignatureParam varchar (10), ... AS ... DECLARE @ mascadaparam varanar (10),. .. SELECT @MaskedParam = @SignfROM, ... SELECT ... where column = @ paragraph with mask and ... ... live  

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -