I’m trying to profile a few queries but as you know, when you run a query a second time, it comes back in 0ms. I’m using
DBCC FREEPROCCACHE
but that doesn’t seem to do the trick. what else can I run to clear any trace of execution/results cache?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This should not be run on a production server though.
CHECKPOINTis a database scoped command that will write the dirty buffers to disc so they will be affected by the next command butDBCC dropcleanbuffersis global and all data pages dropped from the buffer cache in this manner will need to be read in from disc when used next time.