SQL Server query timesout after running a few times, only fix is DROPCLEANBUFFERS or Restart SQLServer -
i have complex query joins on tables have large amounts of data. query timesout after application runs few times. ways can working again restarting sql server or running:
dbcc dropcleanbuffers;
can give me idea of things should looking into? trying narrow down needs done fix this. there way disable caching query? seems caching making timeout eventually.
thegameiswar's suggestion of updating statistics idea. though, may want investigate further if updating statistics alleviates timeout issue.
it sounds getting query plan of parameters being sent it, caused parameter sniffing; particularly heavily skewed data.
have tried adding option (recompile)
to query or with recompile
if procedure?
have checked execution plan?
reference:
Comments
Post a Comment