Hi Friends,

This is my 23rd blog on SQL Server Trace Flag 2301 in the series of One Trace Flag a Day. You can go to all blogs under that series by clicking here.

This is one of the trace flags that can be used to improve the performance but use of these trace flags always depend on the type of server workload. Use of these trace flags can improve the performance if your workload is related to decision support queries. This trace flag may decrease the performance if your workload is mostly related to dynamic queries.

This trace flag will enable the advanced optimization methods for optimizer to improve the performance. As we stated earlier, this trace flag can be good or bad, depends on your workload. So before using this, perform the complete testing and query optimization as much as you can.

In other words we can say that this trace flag will force the optimizer to spend more time on queries. In the result of this, queries will use the most optimal plan selected by optimizer rather than using sub optimal plan.

Reference: Click here.

PS: Do not use trace flags in production environment without testing it on non production environments and without consulting because everything comes at a cost.

HAPPY LEARNING!

Regards:
Prince Kumar Rastogi

Like us on FaceBook | Join the fastest growing SQL Server group on FaceBook

Follow Prince Rastogi on Twitter | Follow Prince Rastogi on FaceBook