Explain some DBCC commands?

Answer Posted / karthick.p

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 ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to grant a permission in ms sql server using "grant execute" statements?

569


How to use group functions in the select clause in ms sql server?

541


What is sql azure database?

188


Benefits of Stored Procedures?

574


What is a data source file?

505






Can you give me some DBCC command options?(Database consistency check) - DBCC CHECKDB - Ensures that tables in the db and the indexes are correctly linked.and DBCC CHECKALLOC - To check that all pages in a db are correctly allocated. DBCC SQLPERF - It gives report on current usage of transaction log in percentage. DBCC CHECKFILEGROUP - Checks all tables file group for any damage.

2035


How to list all tables in the database using odbc_tables()?

572


How does normalization work?

508


How do I find the sql server instance name?

531


How to use user defined functions in expressions?

554


How to loop through result set objects using mssql_fetch_array()?

547


How to get a list of columns in a view using the "sp_help" stored procedure?

576


How you provide security to cube? : sql server analysis services, ssas

542


What is the beast way to write CTE in SQL Server ?

566


Can you leave a union at any time?

547