There are quite a lot of great tools and queries available to the DBA that aid in troubleshooting and performance tuning. The list is incredibly long, but I mainly use RedGate's SQL Monitor (which has come on in the last 5 years in leaps and bounds), Glenn Berry's DMV queries, Adam Machanic's sp_whoisactive and Brent Ozar Unlimited's sp_Blitz suite (predominantly sp_Blitz and sp_BlitzIndex). In writing this, I see that Brent Ozar has expanded his offering, so it looks like I have a weekend project ahead of me!
I'm keeping this blog as a repository for SQL tips and tricks I have learned over my time working with SQL Server.
Friday, 19 January 2018
Tuesday, 2 January 2018
SQL 2016 Database Scoped Configuration: MAXDOP
SQL Server 2016 Microsoft expanded the range and flexibility of database level configuration settings. There are some new features, as well as features which that can be set at more than just the server or database scope. Now, among other things, we are able to:
- set certain options both at the instance and the database level (MAXDOP)
- set instance level trace flag settings at the database level (LEGACY_CARDINALITY_ESTIMATION)
- the Trace Flag 1117 is now set at the FILEGROUP LEVEL
- the brand new database level CLEAR PROCEDURE_CACHE
A summary of the new options can be found on the Technet blog.
In this post I am going to focus on the MAXDOP feature. Having read a few articles and posts about this feature it wasn't clear to me exactly how this feature worked. Especially in regard to the relationship between the instance level setting and the database level setting.
In this post I am going to focus on the MAXDOP feature. Having read a few articles and posts about this feature it wasn't clear to me exactly how this feature worked. Especially in regard to the relationship between the instance level setting and the database level setting.
Subscribe to:
Posts (Atom)