Results 1 to 2 of 2
  1. #1
    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.

  2. #2
    Join Date
    Nov 2004
    on the wrong server
    Provided Answers: 6
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts