Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I disable Query Analyzer caching of Query Plans. 1

Status
Not open for further replies.

lawlerpat

Programmer
Jun 28, 2002
54
0
0
US
When tying to optimize some statements, I know that QA will cache the query plan and data buffers. However, this throws off the testing.
I know there are some settings or statements that I can enable/disable these two built in features with.

Thanks
 
before the query run

dbcc dropcleanbuffers
and
dbcc freeproccache

Think that's the spelling - check in bol.

======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
 
Bingo that was it. And spelled correctly.
thanks
patrick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top