Liquidloop


Hello,

If i backup a database and then restore it, would physical structure remain the same specially fragmentation.

I'm concerned about output of DBCC SHOWCONTIG.

Senario: I want to check if client database needs defragmentation, so he's sending db backup file. But is it possible that when i restore it fragmentation info has got lost

Thank you.

STG Labs



Re: Does fragmentation changes after backup/restore operation?

Peter Byrne MSFT


Table/index fragmentation should be unaffected by BACKUP/RESTORE.







Re: Does fragmentation changes after backup/restore operation?

Liquidloop

And i hope it's same for tranferring .mdf file to be attached later







Re: Does fragmentation changes after backup/restore operation?

Peter Byrne MSFT

Yes, it is the same for detach/attach.