惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
A
About on SuperTechFans
IT之家
IT之家
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Blog — PlanetScale
Blog — PlanetScale
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
The GitHub Blog
The GitHub Blog
Vercel News
Vercel News
G
Google Developers Blog
J
Java Code Geeks
宝玉的分享
宝玉的分享
T
Tailwind CSS Blog
Cloudbric
Cloudbric
L
LINUX DO - 最新话题
MyScale Blog
MyScale Blog
H
Heimdal Security Blog
PCI Perspectives
PCI Perspectives
Attack and Defense Labs
Attack and Defense Labs
S
Security @ Cisco Blogs
Latest news
Latest news
I
Intezer
L
Lohrmann on Cybersecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
月光博客
月光博客
T
Threatpost
博客园 - 【当耐特】
S
Schneier on Security
P
Privacy International News Feed
G
GRAHAM CLULEY
T
Tenable Blog
AWS News Blog
AWS News Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
雷峰网
雷峰网
博客园 - Franky
Engineering at Meta
Engineering at Meta
美团技术团队
S
Secure Thoughts
T
Troy Hunt's Blog
Microsoft Security Blog
Microsoft Security Blog
SecWiki News
SecWiki News
V
Visual Studio Blog
人人都是产品经理
人人都是产品经理
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Cisco Talos Blog
Cisco Talos Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Martin Fowler
Martin Fowler
Webroot Blog
Webroot Blog
Google DeepMind News
Google DeepMind News
H
Hackread – Cybersecurity News, Data Breaches, AI and More

博客园 - Arping.Net探索

自动发送TFS团队项目文件迁入迁出信息 自动发送TFS团队项目用户权限检查信息 MPSENG上 "MPFTranLogData with error code 80004005. "错误的处理 高强度磁铁靠近笔记本屏幕灯管附近黑屏的原因及解决办法 浅谈SaaS数据安全性 一个老土但是很重要的问题:SaaS到底怎么发音? IDC 双线技术引发的思考 Windows2003 远程桌面超过最大连接数解决办法 Multi App Data-Share Module(多应用数据共享模型) China First SaaS Application Demo:Crab 安装篇 Crab与SaaS (转自MSDN) SaaS应用成熟度模型 Microsoft SQL Server 2005 安装失败处理 - Integration Services安装失败的解决办法 SQL 2005中用存储过程调用Web Services Visual Studio 2008、SQL Server 2008和Windows Server 2008发布日期确定(跟着老盖要练凌波微步了) Hardware and Software Requirements for Installing SQL Server Katmai 今天天气好热,DIY了一个USB风扇 miniSAP 安装步骤(改进版,装得我好累啊) Ora9.2 NTFS 老问题:System.Data.OracleClinet requires Oracle client software version 8.1.7 or greater.
MS SQL Server 2005无数据库日志恢复
Arping.Net探索 · 2008-07-25 · via 博客园 - Arping.Net探索

场景:只有Test.mdf文件,日志文件被删除了,现需要恢复数据库。

步骤:

1.建立同名数据库Test.

2.停止数据库服务,将旧的数据库文件test.mdf覆盖到新创建的数据库文件上

3.启动数据库服务,这时候数据库是打不开的

4.在master库中运行 ,如下语句便可。

-- 1.置为紧急状态
alter database test set emergency

-- 2.恢复
declare @databasename varchar(255)

set @databasename='test'

exec sp_dboption @databasename, N'single', N'true' --将目标数据库置为单用户状态

dbcc checkdb(@databasename,REPAIR_ALLOW_DATA_LOSS)

dbcc checkdb(@databasename,REPAIR_REBUILD)

exec sp_dboption @databasename, N'single', N'false'--将目标数据库置为多用户状态