Backup a database on a HDD with a different sector size

后端 未结 6 940
猫巷女王i
猫巷女王i 2021-02-02 11:16

In our development environment we have long been using a particular backup and restore script for each of our products through various SQL Server versions and different environm

6条回答
  •  礼貌的吻别
    2021-02-02 11:46

    This issue is caused by different sector sizes used by different drives.

    You can fix this issue by changing your original backup command to:

    BACKUP DATABASE MyDB TO  DISK = N'D:\MyDB.bak' WITH  INIT , NOUNLOAD ,  NAME = N'MyDB backup',  STATS = 10,  FORMAT
    

    Note that I've changed NOFORMAT to FORMAT and removed NOSKIP.

    Found a hint to resolving this issue in the comment section of the following blog post on MSDN: SQL Server–Storage Spaces/VHDx and 4K Sector Size

    And more information regarding 4k sector drives: http://blogs.msdn.com/b/psssql/archive/2011/01/13/sql-server-new-drives-use-4k-sector-size.aspx

提交回复
热议问题