In the documentation to DBCC SHRINKDATABASE
, Microsoft is warning to run the command because it's i/o expensive.
However, in the documentation to DBCC SHRINKFILE
, there is no such warning.
Now when we use simple recovery and basically have only one database file, is it better to run DBCC SHRINKFILE
or DBCC SHRINKDATABASE
?