Thread: weird cache issue
01-29-07, 11:00 #1Registered User
- Join Date
- Oct 2006
Unanswered: weird cache issue
I have a rather large function that returns a table that aggregates data across several tables. I've noticed that recently when records are inserted into one of the tables, the function returns the same data as before, i.e. the new record isn't reflected in the aggregation. if I run "dbcc freeproccache" it shows up on the next query, so I figured it was a caching issue. but I also figured sql server would know to re-query a table that has changed...
am I off here, or is sql server? is there a way to correct this behavior if it is in fact the cache? thanks in advance.
01-29-07, 12:50 #2Annie's Dog Walker
Provided Answers: 6
- Join Date
- Nov 2004
- on the wrong server
see Brett's sticky. show your code.If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry. Earnest Hemingway, A Farewell To Arms.