0

We have a script that we use for client conversions that deletes all date from almost every table from a database. We do this so that we can clear out any data not related to the application configuration, so that we can start to import data again (test conversions).

Would it be wise to shrink the DB after that process?
Will the continued cycle of import data-->delete data-->import data-->delete data cause fragmentation and "artificial growth" of the DB size?

Thanks in advance

Chad
  • 1

1 Answers1

0

Log file shrinks are ok with runaway log files. Data file shrinks, not so good. To quote Paul Randal (former owner of the shrink code):

"...data file shrink causes massive index fragmentation."

Have a read through his post about shrinking log and data files. Pretty much sums it up.

squillman
  • 37,883
  • 12
  • 92
  • 146