question

pits avatar image
pits asked

error to run command

Is it safe to run DBCC CHECKDB while users are online?
errordbcc
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Magnus Ahlkvist avatar image
Magnus Ahlkvist answered
If you run DBCC CHECKDB without any other arguments, you will not have locking issues, as DBCC CHECKDB uses a snapshot to examine the database. If you repair your database with DBCC CHECKDB there will be some locking going on and users might experience problems. On the other hand - if you have errors in your database, you might want to thrown out your users from the database anyway. Read more about DBCC CHECKDB in Books Online: [ http://msdn.microsoft.com/en-us/library/ms176064.aspx][1] [1]: http://msdn.microsoft.com/en-us/library/ms176064.aspx
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.