当前位置:网站首页>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 .
边栏推荐
- day8
- How to solve Oracle not available
- Yield Guild Games:这一年的总结与未来展望
- 数学建模及其基础知识详解(化学常考知识点)
- rk3399 9.0驱动添加Powser按键
- CUDA相关
- JWT token related configuration (global configuration identity authentication rewrites authenticate method)
- 手把手教你安装Latex(保姆级教程)
- Shell programming specifications and variables
- DRF - web development mode, API interface, API interface testing tool, restful specification, serialization and deserialization, DRF installation and use
猜你喜欢
![[ESN] learning echo state network](/img/8e/09cc2d2c0e0ee24e9bee13979b03cb.png)
[ESN] learning echo state network

15. Model evaluation and selection

追踪伦敦银实时行情的方法有哪些?

PTA (daily question) 7-75 how many people in a school

数仓搭建——ADS层

靠云业务独撑收入增长大梁,微软仍然被高估?

Brief introduction to compressed sensing

Shell编程规范与变量

zabbix部署及监控

There is a span tag. If you want to do click events on it, how can you expand the click area
随机推荐
Rk3399 9.0 driver add powser button
“吃货联盟定餐系统”
seleniumwire获取百度指数
追踪伦敦银实时行情的方法有哪些?
C语言括号匹配(栈括号匹配c语言)
MATLAB02:结构化编程和函数定义「建议收藏」
异步模式之工作线程
selenium对接代理与seleniumwire访问开发者工具NetWork
Api 接口优化的那些技巧
15. Model evaluation and selection
redis版本怎么查看(查看redis进程)
追踪伦敦银实时行情的方法
Error reporting: Rong Lianyun sends SMS verification code message 500
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
Xinchi technology released the latest flagship product of G9 series, equipped with six A55 cores with 1.8GHz dominant frequency
数仓搭建——ADS层
COPU陆首群教授应邀在开放原子全球开源峰会上做主旨演讲
Protective copy & stateless
Copu Professor Lu Shouqun was invited to give a keynote speech at the open atom global open source summit
CDN mode uses vant components, and components cannot be called after they are introduced