Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Turn off caching on one database

Author  Topic 

unicorn21
Starting Member

10 Posts

Posted - 2004-09-05 : 21:44:30
hi!
I am currently testing different queries on reports but are finding they are hard to test for time as after the first run sql caches them and i can only test once!
Is it possible to turn off caching on sql server?
Or even for only 1 database?

scullee
Posting Yak Master

103 Posts

Posted - 2004-09-05 : 23:59:48
Your best bet would be to clear the query cache between runs.
Go to Top of Page

unicorn21
Starting Member

10 Posts

Posted - 2004-09-06 : 01:53:39
ahh, i guess something like this might do the trick
checkpoint
dbcc dropcleanbuffers
DBCC FREEPROCCACHE

Now I need full admin rights to the database :)
Go to Top of Page
   

- Advertisement -