shrinkdatabase

Sql Server SHRINKDATABASE command

When I shrink a sql server database using the GUI (All Tasks->Shrink Database->Accept all defaults, click OK), it finishes quickly. But if I run this command, it takes a very very long time. DBCC SHRINKDATABASE('my_database') What am I missing? This is in SQL Server 2000. ...

why shrink a sqlserver 2005 database?

What are the advantages and disadvantages of shrinking a database? Are there any performance implications? ...

Shrink database after removing extra data

We have a need to fit database in 4G in order to use ms sql express edition. I started from 7G database, and found a lot of not needed records, and deleted them. After Shrink database size is 4.6G, and 748MB is free (according to database properties). However, when i execute exec sp_spaceused i am having interesting results: Database...

SQL Server: Hidden risks of using DBCC SHRINKFILE

We're getting a huge LDF file by using a full recovery mode in a SQL Server DB. so we're planning to shrink the log file. Is there any performance penalty for using DBCC SHRINKFILE to reduce the database log file size (LDF)? and what about applying it to the data file (MDF)? ...

Recover unused space in SQL Table

We recently moved the value of a column from an existing table to a new table so that it could reside on a separate disk. The preexisting column still remains but has been set to null as some historical applications may still reference this column when writing data. The table now has 10GB unused space that we can not reclaim even after...