April 12, 2010 at 10:25 am
I've been trying to optimize some queries. If I run the same query twice, the second time it runs in a fraction of the first -- I'm assuming that this is because everything is still in memory. To counter this, I Stop and Start the service before each test.
Is there a way to flush this in T-SQL so I don't need to constantly stop the service??
Thanks --- Chris
April 12, 2010 at 10:56 am
DBCC DROPCLEANBUFFERS
and
DBCC FREEPROCCACHE
April 12, 2010 at 2:22 pm
Nils, Steve,
Thanks. When my searching fails I can always count on someone here to know the answers.
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply