DBCC CheckDB fails with error "The database could not be checked as a database snapshot could not be created and the database or table could not be locked"

DBCC CheckDB may with fail with error Error Msg 5030, Level 16, State 12, Line 1 The database could not be exclusively locked to perform the operation. Msg 7926, Level 16, State 1, Line 1 Check statement aborted. The database could not be checked as a database snapshot could not be created and the database…

1