I've been trying to optimize some queries. If I run the same query twice, the second time it runs in a fraction of the first -- I'm assuming that this is because everything is still in memory. To counter this, I Stop and Start the service before each test.
Is there a way to flush this in T-SQL so I don't need to constantly stop the service??
Thanks --- Chris