Interview Questions

1. What is the difference between sp_clean_db_free_space and DBCC SHRINKFILE?

  • sp_clean_db_free_space cleans all pages in all files of the database.
  • DBCC SHRINKFILE: Shrinks the size of the specified data or log file for the current database, or empties a file by moving the data from the specified file to other files in the same file group.
By Hena Parveen 2 0
Is this helpful? Yes No

Submit an interview question

Submitted questions and answers are subject to review and editing, and may or may not be selected for posting, at the sole discretion of w3Sniff.

Get Started

Comments

Leave a Comment


Check out more interview questions

Based on your skills

MS SQL Server

1661358 1720 23 859

Angular

42427 92 0 46

Wordpress

34305 72 1 36