{"id":235,"date":"2012-05-29T10:43:42","date_gmt":"2012-05-29T10:43:42","guid":{"rendered":"https:\/\/sqlserverlearner.azurewebsites.net\/2012\/05\/29\/msg-7919-level-16-state-3-line-1-repair-statement-not-processed-database-needs-to-be-in-single-user-mode\/"},"modified":"2012-05-29T10:43:42","modified_gmt":"2012-05-29T10:43:42","slug":"msg-7919-level-16-state-3-line-1-repair-statement-not-processed-database-needs-to-be-in-single-user-mode","status":"publish","type":"post","link":"https:\/\/sqlserverlearner.com\/2012\/05\/29\/msg-7919-level-16-state-3-line-1-repair-statement-not-processed-database-needs-to-be-in-single-user-mode\/","title":{"rendered":"Msg 7919, Level 16, State 3, Line 1 Repair statement not processed. Database needs to be in single user mode."},"content":{"rendered":"
Error Message:<\/strong> Example:<\/strong> This error occurs when DBCC CHECKDB command is issued when the database is not in Single user mode.<\/p>\n Fix\/Resolution:<\/strong> Dont forget to bring the database to the user mode in which it is present before after running the query.<\/p>\n","protected":false},"excerpt":{"rendered":" Error Message: Msg 7919, Level 16, State 3, Line 1 Repair statement not processed. Database needs to be in single user mode. Example: [sql] DBCC CHECKDB(‘AdventureWorks’, REPAIR_REBUILD) [\/sql] This error occurs when DBCC CHECKDB command is issued when the database is not in Single user mode. Fix\/Resolution: Change the database to Sinle user mode and…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2064,2067],"tags":[2068,2069,2070,2071],"class_list":["post-235","post","type-post","status-publish","format-standard","hentry","category-dbcc-commands","category-msg-7919","tag-msg-7919-level-16-state-3","tag-msg-7919-level-16-state-3-line-1","tag-repair-statement-not-processed-database-needs-to-be-in-single-user-mode","tag-sql-server-msg-7919-level-16-state-3-line-1-repair-statement-not-processed-database-needs-to-be-in-single-user-mode"],"_links":{"self":[{"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/posts\/235","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/comments?post=235"}],"version-history":[{"count":0,"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/posts\/235\/revisions"}],"wp:attachment":[{"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/media?parent=235"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/categories?post=235"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/tags?post=235"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
\n
\nMsg 7919, Level 16, State 3, Line 1
\nRepair statement not processed. Database needs to be in single user mode.
\n<\/font><\/p>\n
\n[sql]
\nDBCC CHECKDB(‘AdventureWorks’, REPAIR_REBUILD)
\n[\/sql]<\/p>\n
\nChange the database to Sinle user mode and run the query.
\n[sql]
\nALTER DATABASE AdventureWorks SET SINGLE_USER
\nGO
\nDBCC CHECKDB(‘AdventureWorks’, REPAIR_REBUILD)
\n[\/sql]<\/p>\n