当前位置:网站首页>SQL server only has database files and no log files. The solution to the 1813 error in restoring data times
SQL server only has database files and no log files. The solution to the 1813 error in restoring data times
2022-07-29 00:53:00 【Braised corky】
Unable to open new database 'ASR'.CREATE DATABASE suspend .
File activation failed . Physical file name 'E:\SqlServer\MSSQL\Data\ASR_log.LDF' It may not be right .
Unable to regenerate log , The reason is that there are open transactions when the database is closed / user , The database has no checkpoints or the database is read-only . If the transaction log file is manually deleted or lost due to hardware or environmental problems , This error may occur . (Microsoft SQL Server, error : 1813)
Solution :
1、 Create a new database with the same name .
2、 Stop database service , Overlay the new database master file ( Tips : It's best to put it in the same disk , Delete or move the new database master file , Then cut the main database file to be restored , This will save time .)
3、 Start database service , The database becomes suspect or suspicious . Then run in the query analyzer :
alter database Database name without log file set emergency
Set to emergency .
4、 Run again :
alter database Database name without log file set single_user
perhaps :
Sp_dboption ' Database name without log file ', 'single user', 'true'
Set to single user mode .
5、 Check and rebuild the log file , function :
dbcc checkdb(' Database name without log file ',REPAIR_ALLOW_DATA_LOSS)
This is a long time . Wait patiently ! If there is an error prompt , Run again :
dbcc checkdb(' Database name without log file ',REPAIR_REBUILD)
Make repairs . If there are no mistakes , You can skip .
6、 Revert to multi-user mode
alter database Database name without log file set multi_user
perhaps :
Sp_dboption ' Database name without log file ', 'single user', 'false'
Refresh database , You can see the repaired database .
边栏推荐
- There is a span tag. If you want to do click events on it, how can you expand the click area
- day8
- Soft test --- database (4) SQL statement
- 保护性拷贝&无状态
- DRF - paging, JWT introduction and principle, JWT quick use, JWT source code analysis, JWT custom return format, custom user issued token, custom token authentication class
- Api 接口优化的那些技巧
- What are the skills of API interface optimization?
- Some operations of Ubuntu remote server configuration database (unable to locate package MySQL server, steps of installing mysql, unable to enter password when logging in MySQL)
- Educational Codeforces Round 132 (Rated for Div. 2)【A~C】
- Error reporting: Rong Lianyun sends SMS verification code message 500
猜你喜欢

云函数实现网站自动化签到配置详解【Web函数/Nodejs/cookie】

AQS原理

【愚公系列】2022年07月 Go教学课程 020-Go容器之数组

ZABBIX deployment and monitoring
![[ESN] learning echo state network](/img/8e/09cc2d2c0e0ee24e9bee13979b03cb.png)
[ESN] learning echo state network

时间序列数据的预处理方法总结

Oracle实例无法启动的问题如何解决

IMG tags prohibit dragging pictures

I was asked several questions about string in the interview. Can you answer them?
Depth first search (DFS) and its matlab code
随机推荐
Copu Professor Lu Shouqun was invited to give a keynote speech at the open atom global open source summit
DRF - deserialization of serializer, fields and parameters, local and global hooks, use of modelserializer
ORACLE not available如何解决
直流无刷电机控制器(换电机霍尔收费多少)
【开发教程11】疯壳·开源蓝牙心率防水运动手环-整机功能代码讲解
[untitled]
Flyway's quick start tutorial
快手重点整治搬运、洗稿等方式的养号行为,自媒体平台如何净化内容生态
云函数实现网站自动化签到配置详解【Web函数/Nodejs/cookie】
Error reporting: when the browser clicks the modify add button, there is no response and no error reporting. Solution
时间序列数据的预处理方法总结
MySQL的隔离级别、可能出现的问题(脏读、不可重复读、幻读)及其解决方法
关于ThreadPool的一些注意事项
Requestvideoframecallback() simple instance
软考 --- 数据库(4)SQL语句
flask与七牛云上传图片
DRF -- authentication, authority, frequency source code analysis, global exception handling, automatic generation of interface documents, RBAC introduction
flask结合容联云发送验证码
保护性拷贝&无状态
SAP VL02N 交货单过账函数 WS_DELIVERY_UPDATE