April 13, 2011 at 8:09 am
When I run CHECKPOINT along with DBCC DROPCLEANBUFFERS, what is the scope? Is it clearing the buffer for the database I specified or for the whole SQL instance?
Thanks,
-Tim
April 13, 2011 at 9:11 am
It's going after the instance. Why would you do that?
I mean, for testing purposes, fine, but I wouldn't suggest running that in production.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
April 13, 2011 at 9:43 am
The checkpoint is database-specific, the drop clean buffers drops every single clean page from the entire data cache.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
April 13, 2011 at 9:46 am
Grant -
Thanks for the info and yes I am testing the performance of a query. I was hoping to be able to test a separate DB on the same istance without effecting the production DB. Oh well. Off to the test environment.
Thanks again,
-Tim
April 13, 2011 at 9:50 am
Never test on the production server. Ever.
That's what dev/test environments are for.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
April 13, 2011 at 9:54 am
April 13, 2011 at 10:06 am
Timothy Straub (4/13/2011)
Grant -Thanks for the info and yes I am testing the performance of a query. I was hoping to be able to test a separate DB on the same istance without effecting the production DB. Oh well. Off to the test environment.
Thanks again,
-Tim
Heck yes, off to the test environment.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
April 13, 2011 at 1:06 pm
Grant Fritchey (4/13/2011)
, off to the test environment.
*Totally irrelevant thought*
.. to the TestMobile Batman!
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply