dbcc checktable repair_rebuild

Posted on : 29-05-2012 | By : Devi Prasad | In : DBCC Commands

1



Syntax:

DBCC CHECKTABLE('TableName',REPAIR_REBUILD)

This command checks the integrity of the table with respect to pages and structures and repairs it with no possible loss.

Example:

ALTER DATABASE AdventureWorksDW2008R2 SET SINGLE_USER
DBCC CHECKTABLE('DatabaseLog',REPAIR_REBUILD)



Reference : Devi Prasad (sqlserverlearner.com)

Do you like my blog?

If you liked reading this blog, please help spread the word by sharing this blog with your friends.



Need Help On SQL Server?

Cannot Find Solution to your problem (or) If you are looking for some help on SQL Server. Dont worry Click Here to Post your question and solve your issue.




Your Ad Here


Tags: