SQL Server Articles, SQL Server Tips, SQL Server Tutorials, SQL Server Tuning, SQL Server DBA, SQL Server Basics, Training, etc - MyTechMantra.com

MAXDOP for DBCC CHECKDB, DBCC CHECKTABLE and DBCC CHECKFILEGROUP T-SQL Enhancement in SQL Server 2016

Previous Page.. Begin Tutorial.. Next Page..

SQL Server 2016 brings MAXDOP settings, for DBCC CHECKDB, DBCC CHECKTABLE and DBCC CHECKFILEGROUP command. Database Administrators can leverage MAXDOP settings to above mentioned DBCC commands to achieve Max Degree of Parallelism.

This is Part 5 of 10 Part T-SQL Enhancements in SQL Server 2016 for Developers and DBAs. Click here to read it from the beginning….

SQL Server 2016 will continue to use the Max Degree of Parallelism (MAXDOP) value configured using SP_CONFIGURE system procedure if you specify MAXDOP value as ZERO for any of the DBCC CHECKDB, DBCC CHECKTABLE or DBCC CHECKFILEGROUP commands.

Syntax MAXDOP options in SQL Server 2016

DBCC CHECKDB 
	[ ( database_name | database_id | 0
		[ , NOINDEX 
		| , { REPAIR_ALLOW_DATA_LOSS | REPAIR_FAST | REPAIR_REBUILD } ]
	) ]
	[ WITH 
		{
			[ ALL_ERRORMSGS ]
			[ , EXTENDED_LOGICAL_CHECKS ] 
			[ , NO_INFOMSGS ]
			[ , TABLOCK ]
			[ , ESTIMATEONLY ]
			[ , { PHYSICAL_ONLY | DATA_PURITY } ]
			[ , MAXDOP = number_of_processors ]
		}
	]
]

Trending SQL Server Articles and Tips

Example Usage of DBCC CHECKDB Using MAXDOP Settings in SQL Server 2016

DBCC CHECKDB ('MyTechMantra')
WITH ALL_ERRORMSGS, MAXDOP = 4
GO

Example Usage of DBCC CHECKTABLE Using MAXDOP Settings in SQL Server 2016

DBCC CHECKTABLE ('SchemaName.TableName') 
WITH PHYSICAL_ONLY, MAXDOP = 3 
GO 

Example Usage of DBCC CHECKFILEGROUP to Check Primary FileGroup Using MAXDOP Settings in SQL Server 2016

USE MyTechMantra
GO

DBCC CHECKFILEGROUP (1)
WITH ESTIMATEONLY, MAXDOP = 2 
GO

Learn How to Perform DBCC CHECK Database Consistency Checker (DBCC) For Analysis Services Database in SQL Server 2016 for Tabular and Multidimensional Databases

Clicking Next Page button to continue reading the topics and click on the Previous Page button to revisit the previous topic.

Previous Page.. Begin Tutorial.. Next Page..

Related Topics

Ashish Mehta

Ashish Kumar Mehta is a database manager, trainer and technical author. He has more than a decade of IT experience in database administration, performance tuning, database development and technical training on Microsoft SQL Server from SQL Server 2000 to SQL Server 2014. Ashish has authored more than 325 technical articles on SQL Server across leading SQL Server technology portals. Over the last few years, he has also developed and delivered many successful projects in database infrastructure; data warehouse and business intelligence; database migration; and upgrade projects for companies such as Hewlett-Packard, Microsoft, Cognizant and Centrica PLC, UK. He holds an engineering degree in computer science and industry standard certifications from Microsoft including MCITP Database Administrator 2005/2008, MCDBA SQL Server 2000 and MCTS .NET Framework 2.0 Web Applications.

Add comment

Newsletter Signup! Join 15,000+ Professionals




Be Social! Like & Follow Us

Follow us

Don't be shy, get in touch. We love meeting interesting people and making new friends.

Advertisement