Clear SQL Server Cache

When perform benchmark testing, make sure you need to clean the SQL server cache in order to have a more accurate result.

-- Clean all data in the cache
DBCC DROPCLEANBUFFERS

-- clean cache from stored procedure
DBCC FREEPROCCACHE

Comments

Popular posts from this blog

Error 401.1 "Unauthorized: Access is denied due to invalid credentials"

SQL Server 2005: MUST_CHANGE is ON