Understanding SET STATISTICS IO and SET STATISTICS TIME(sqlprof.com)
submitted by
ericvaillancourt(90) 4 years, 1 month ago
Today, I want to talk about two commands that are often overlooked. SET STATISTICS IO and SET STATISTICS TIME these two commands are very useful when comes time to tune a query.
Tuning a query seems simple enough. In essence, we want our searches to run faster. When I teach my class on “Optimizing SQL Server” I realize that many people find it difficult to accomplish this task. While there are many reasons why query tuning is difficult, this article will concentrate on one aspect. And that is that query tuning takes place in an environment that is often changing from second to second, making it hard to really know what exactly is going on... read more...
|category: Database
|Views: 72
tags:
Database another
Everyones tags:
Your Tags: