question

Sql server R2 avatar image
Sql server R2 asked

DBCC SHRINKFILE

Hello, Does this command make any fragmentation in the memory. I read on the one blog if used frequently it creates fragmentation then affects the performance
fragmentation
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Håkan Winther avatar image
Håkan Winther answered
This is one of the favorite topics, don't shrink unless you really have to. Your database will be heavy fragmented and you need to rebuild your indexes. Fragmentation in memory? I guess all or most of your cached data will be flushed to disk when you shrink your file.
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.