Saturday, February 25, 2012

Please help: Shrink SQL Server database

See Books OnLine regarding dbcc shrinkfile and
shrinkdatabase.

>--Original Message--
>Hi,
>I created a database for test purposes. I am trying to
obtain some
>metrics for various scenarios I wish to test. Many of
these scenarios
>involve bulk inserts. Rather then deleting all rows after
each run I
>simply dropped and recreated the tables. However I've
noticed that the
>mdf and log files are getting larger and larger even when
the database
>is completely empty of data. How can I safely shrink the
size of these
>files?
>Thanks,
>Paul
>.
>Thanks

No comments:

Post a Comment