Forum Replies Created

Viewing 15 posts - 421 through 435 (of 1,993 total)

  • Reply To: Why A Query May be Faster the Second Time it Runs

    nicksamuel wrote:

    Just a question about flushing temp tables.

    From what I have experienced, if a routine creates one or more temp tables on the first run, these are just used again...

    MVDBA

  • Reply To: Are the posted questions getting worse?

    Just a thought,

    every post I've replied to in the last few weeks has had updates and new info from pretty much the same bunch of people on here.

    Grant, Jeff,KTFlash, Jonathan...

    MVDBA

  • Reply To: Why A Query May be Faster the Second Time it Runs

    erb2000 wrote:

    How can I force Sql Server to not use the cache or other optimizations so that the same query always takes the same amount of time? When trying to...

    MVDBA

  • Reply To: View runs slower

    Grant Fritchey wrote:

    Also, thinking on this, are you saying that the query and the view are the same, but the view is slower? Or are you saying that you wrote a...

    MVDBA

  • Reply To: Why A Query May be Faster the Second Time it Runs

    julian.fletcher wrote:

    Declare @DBID Int Set @DBID = DB_ID ()
    Checkpoint
    DBCC DROPCLEANBUFFERS WITH NO_INFOMSGS
    DBCC FLUSHPROCINDB (@DBID) WITH NO_INFOMSGS

    That will clear execution plans and data from memory, which would be...

    MVDBA

  • Viewing 15 posts - 421 through 435 (of 1,993 total)