posted 10/20/2011 11:27:31 AM by Piyush Bajaj - Views: [7071]
Hello Folks,
You might have heard about DBCC. If not, I am going to give you some heads up:
DBCC Commands stands for Database Console Commands. They are being used for:
The main function of DBCC CHECKDB is to check the logical and physical integrity of all the objects in the specified database by performing the following operations:
The Syntax for the DBCC CHECKDB is:
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 } ] } ] ]
DBCC execution completed. If DBCC printed error messages, contact your System Administrator.
DBCC CHECKDB also checks things like:
If there’s happen a condition where a data page is being left half-written, then DBCC CHECKDB is the best means of detecting the problem.
Now, to check the integrity of the database, issue the following command:
Well, this was a brief about DBCC CHECKDB.
If you liked this post, do like us on Facebook at http://www.FaceBook.com/SQLServerGeeks
And also comments on this!!
Regards
Piyush Bajaj
@piyushbajaj007
piyush.bajaj.2007@gmail.com
www.sqlservergeeks.com/blogs/piyush.bajaj.2007
Piyush Bajaj (Member since: 5/23/2011 11:25:15 AM) I am very passionate about SQL Server. I also did certification on MCTS - SQL Server 2008, Database Development, and MCTS - SQL Server 2005, Implementation & Maintenance, which helped me to get more knowledge and interest on this field. Please feel free to drop me any question online or offline, i will try to give you the best possible answer from my side. Right now i am working as a SQL Server developer in TCS. I have an experience of just 2 years, well i can only say that "if you have an interest and passion, experience might become a very small thing".
View Piyush Bajaj 's profile
Hi,
My database path is D:\Baza and database name is LOTO
I have tried this sytax but nothing
DBCC CHECKDB
[
[ ( Loto | loto | 0
[ , NOINDEX
| , { REPAIR_ALLOW_DATA_LOSS | REPAIR_FAST | REPAIR_REBUILD } ]
) ]
WITH
{
[ ALL_ERRORMSGS ]
[ , EXTENDED_LOGICAL_CHECKS ]
[ , NO_INFOMSGS ]
[ , TABLOCK ]
[ , ESTIMATEONLY ]
[ , { PHYSICAL_ONLY | DATA_PURITY } ]
}
]
What is wrond?
Leave a comment