简体   繁体   English

备份数据库——SQL服务器

[英]Backup database - SQL Server

I need make a backup of my SQL Server database.我需要备份我的 SQL 服务器数据库。 When I try, I get this error:当我尝试时,出现此错误:

System.Data.SqlClient.SqlError: Read on "c:..." failed: 23(...)(Data error (cyclic redundancy error)) System.Data.SqlClient.SqlError:读取“c:...”失败:23(...)(数据错误(循环冗余错误))

Now, I'm trying to run this command:现在,我正在尝试运行此命令:

DBCC CheckDB ('MYDATABASE') WITH NO_INFOMSGS, ALL_ERRORMSGS

But I get this error但我得到这个错误

Msg 8921, Level 16, State 1, Line 18 Msg 8921, Level 16, State 1, Line 18
Check terminated.检查终止。 A failure was detected while collecting facts.收集事实时检测到故障。 Possibly tempdb out of space or a system table is inconsistent.可能是 tempdb 空间不足或系统表不一致。 Check previous errors.检查以前的错误。

What can I do?我能做什么? I just need make a backup.我只需要做一个备份。

I'm using Microsoft SQL Server Management Studio.我正在使用 Microsoft SQL Server Management Studio。

First of all, check the Service Account used for the SQL Server Instance from Services.首先,从服务中检查用于 SQL 服务器实例的服务帐户。 Ensure the service account have enough permission for read/write at the exact location for Backup in Physical Disk.确保服务帐户有足够的权限在物理磁盘中备份的确切位置进行读/写。 Ensure the the user (the user you using to login in SQL Instance) have enough permission to perform backup.确保用户(您用于登录 SQL 实例的用户)具有足够的权限来执行备份。

Final option to recover the data from the database is create another database with same tables (blank) in different machine in different SQL instance, then Export all the database to new database using Management studio (Right click on the Database > task > Export Data)从数据库中恢复数据的最后一个选项是在不同 SQL 实例的不同机器上创建另一个具有相同表(空白)的数据库,然后使用 Management studio 将所有数据库导出到新数据库(右键单击数据库 > 任务 > 导出数据)

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

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