ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
Explain some DBCC commands?
 Question Submitted By :: Latha Sree
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Explain some DBCC commands?
Answer
# 1
DBCC CHECKDB, DBCC CHECKTABLE, DBCC CHECKCATALOG, DBCC 
CHECKALLOC, DBCC SHOWCONTIG, DBCC SHRINKDATABASE, DBCC 
SHRINKFILE etc. But there are a whole load of DBCC commands 
which are very useful for DBAs.
 
Is This Answer Correct ?    6 Yes 0 No
Swapna
 
  Re: Explain some DBCC commands?
Answer
# 2
DBCC SHOWCONTIG  - TO FIND THE FRAGMENTATION

DBCC SHRINKDATABASE - TO REDUCE THE SIZE OF THE DATABASE 

DBCc SHRINK FILE - TO REDUCE THE SIZE OF THE FILE
 
Is This Answer Correct ?    1 Yes 1 No
Karthick.p
 
 
 
  Re: Explain some DBCC commands?
Answer
# 3
dbcc opentran,dbcc inputbuffer,dbcc outputbuffer.
 
Is This Answer Correct ?    3 Yes 0 No
Varun
 
  Re: Explain some DBCC commands?
Answer
# 4
DBCC commands

1.	DBCC CHECKCONSTRAINTS <db_name>|<indexname> WITH 
ALL_CONSTRAINTS 
Here with all coinstraints include disable coinstraints also

DBCC CHECKCONSTRAINTS checks the integrity of foreign key 
and checked constraints, but does not check the integrity 
of a table's on-disk data structures. These data structure 
checks can be performed with DBCC CHECKDB and DBCC 
CHECKTABLE

2. DBCC CHECKTABLE performs a physical consistency check on 
tables and indexed views. The NOINDEX option, used only for 
backward compatibility, also applies to indexed views.
For the specified table, DBCC CHECKTABLE checks that: 
·	Index and data pages are correctly linked.
·	Indexes are in their proper sort order.
·	Pointers are consistent.
·	The data on each page is reasonable.
·	Page offsets are reasonable.

DBCC CHECKTABLE does not acquire a table lock by default. 
Instead, it acquires a schema lock that prevents meta data 
changes but allows changes to the data.
To perform DBCC CHECKTABLE on every table in the database, 
use DBCC CHECKDB.

3. DBCC DBREINDEX can rebuild all of the indexes for a 
table in one statement, which is easier than coding 
multiple DROP INDEX and CREATE INDEX statements. Because 
the work is done by one statement, DBCC DBREINDEX is 
automatically atomic

4. DBCC HELP returns a result set displaying the syntax for 
the specified DBCC statement


5. DBCC INDEXDEFRAG can defragment clustered and 
nonclustered indexes on tables and views. DBCC INDEXDEFRAG 
defragments the leaf level of an index so that the physical 
order of the pages matches the left-to-right logical order 
of the leaf nodes, thus improving index-scanning 
performance. 
DBCC INDEXDEFRAG also compacts the pages of an index, 
taking into account the FILLFACTOR specified when the index 
was created. Any empty pages created as a result of this 
compaction will be removed
 
Is This Answer Correct ?    2 Yes 0 No
Samar
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
Differnce between sel server 2000 and 2005  3
Which virtual table does a trigger use? TCS6
If there is failure during updation of certain rows, what will be the state?  1
which one will take 1st priority in case of insert statement and select statement???  2
What are the type of joins? When do we use Outer and Self joins?  3
What is database normalization? Digicel5
how to select a field with firstletter as capital and remaining are small letters  8
A table contains list of customers and his city with other details. Each customer has a unique number and the table consists millions of data. Query is: I want to retrieve 10 customers from each city, no script, only from single query? Infosys3
How do we rollback the table data in SQL Server  3
How to find the second largest salary in the emp database and also How to find 3rd,4th and so on ........ in the emp database plz mail the answer @ mak2786@gmail.com Oracle18
how to delete duplicate rows from table in sql server HCL8
What are the two types of concurrency?  2
WHAT IS UNIQUE IDENTIFIER DATA TYPE? Sparsh2
how to get 25th row in any table in sqlserver can u tell me syntax  4
how to retrive only second row from table in sql server 2000? CTS7
How do you persist objects, permissions in tempdb  1
What is SQL server agent? SAP-Labs2
What is a view? is View updatable? IBM11
How can i change the column name. HCL7
can you any body tell me the difference between candidate key and primary key  4
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com