简体   繁体   English

SQL Server 2012 Express备份数据库失败

[英]SQL Server 2012 Express backup database failure

I am trying to backup a database I have created in SQL Server 2012 Express. 我正在尝试备份我在SQL Server 2012 Express中创建的数据库。 I right click the database -> tasks -> backup and assume normal defaults. 我右键单击数据库 - >任务 - >备份并假设正常默认值。

The error I get is then this: 我得到的错误是这样的:

TITLE: Microsoft SQL Server Management Studio
------------------------------

Backup failed for Server 'JAMIE-PC\SQLEXPRESS'.  (Microsoft.SqlServer.SmoExtended)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.0.2100.60+((SQL11_RTM).120210-1917+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Backup+Server&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

System.Data.SqlClient.SqlError: Cannot use the backup file 'C:\backup.bak' because it was originally formatted with sector size 4096 and is now on a device with sector size 512. (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.0.2100.60+((SQL11_RTM).120210-1917+)&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------

This does not mean an awful lot to me but looks potentially like a FAT32/NTFS style issue !? 这对我来说并不意味着很多,但看起来可能像FAT32 / NTFS风格的问题! despite that seemingly distinctly detached from SQL Server 2012! 尽管看起来与SQL Server 2012明显分离! The version I am running is 11.0.2100 我运行的版本是11.0.2100

Ah - turns out I had added a new backup file to the list but had not removed the existing one - and because the existing file was above the new file it was failing with the error before writing to the new backup file. 啊 - 结果我已经在列表中添加了一个新的备份文件,但没有删除现有文件 - 并且由于现有文件位于新文件之上,因此在写入新备份文件之前失败并显示错误。

Removing the existing backup file from the list and adding a fresh one in the backup folder of the SQL server installation directory solved the problem! 从列表中删除现有备份文件并在SQL Server安装目录的备份文件夹中添加一个新文件解决了这个问题! Thanks to Raphael for helping me spot it. 感谢Raphael帮助我发现它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM