Relative Content

Tag Archive for sql-serverdatabase

Shrink Data and Log file of a MS SQL database

We had a MS SQL database in which one audit table grew big to 5TB (due to an oversight). We identified unwanted records from this audit table and have deleted these records from this table. Now the total size of the tables and indexes is about 20GB, however the data and log file size still stays at 5TB. After looking through various forums, i found that we can reduce the data and log file size using