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

推荐订阅源

Security Archives - TechRepublic
Security Archives - TechRepublic
罗磊的独立博客
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
Apple Machine Learning Research
Apple Machine Learning Research
The Register - Security
The Register - Security
J
Java Code Geeks
V2EX - 技术
V2EX - 技术
Vercel News
Vercel News
N
News and Events Feed by Topic
腾讯CDC
P
Proofpoint News Feed
N
News | PayPal Newsroom
www.infosecurity-magazine.com
www.infosecurity-magazine.com
爱范儿
爱范儿
O
OpenAI News
酷 壳 – CoolShell
酷 壳 – CoolShell
月光博客
月光博客
Martin Fowler
Martin Fowler
Engineering at Meta
Engineering at Meta
D
Docker
Y
Y Combinator Blog
博客园 - 聂微东
G
Google Developers Blog
S
Security @ Cisco Blogs
Simon Willison's Weblog
Simon Willison's Weblog
S
Schneier on Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
S
SegmentFault 最新的问题
云风的 BLOG
云风的 BLOG
阮一峰的网络日志
阮一峰的网络日志
C
CXSECURITY Database RSS Feed - CXSecurity.com
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
C
CERT Recently Published Vulnerability Notes
I
Intezer
G
GRAHAM CLULEY
有赞技术团队
有赞技术团队
Attack and Defense Labs
Attack and Defense Labs
V
Visual Studio Blog
博客园 - Franky
博客园 - 三生石上(FineUI控件)
W
WeLiveSecurity
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Hugging Face - Blog
Hugging Face - Blog
Scott Helme
Scott Helme
T
Troy Hunt's Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
L
LINUX DO - 最新话题
C
Cybersecurity and Infrastructure Security Agency CISA

博客园 - 阿栋.c#

Ubuntu 12.10 安装 JDK 7u15官方版 sql2005新特性 for xml , outer apply ,多行转成单列方法 完美解决Android系统短信发送每小时限制100条问题 PAZU -- 4Fang WEB 打印控件 正则表达式删除指定的HTML 标签 - 阿栋.c# - 博客园 转---支持非主键排序的SQL存储过程 人事管理系统的一般功能需求 ASP.NET木马及Webshell安全解决方案 在 64 位版本的 Windows 上,如何在 32 位版本的 ASP.NET 1.1 和 64 位版本的 ASP.NET 2.0 之间切换 win2003,IIS6.0 不能上传大于200K文件的解决办法 JavaScript:全面解析Ajax跨站数据传输和iframe跨域名js调用 SQL2000 排名 注册表 SAM - 阿栋.c# - 博客园 jquery radio,checkbox,select操作 - 阿栋.c# - 博客园 参数化查询 ACCESS的参数化查询,附VBSCRIPT(ASP)和C#(ASP.NET) eWebeditor集成aspjpeg 删除master库中不安全的扩展存储过程 ASP在使用SQL SERVER存储过程中的问题
数据库备份还原到指定时间
阿栋.c# · 2009-06-24 · via 博客园 - 阿栋.c#

数据库备份还原到指定时间

---是完整备份.

此时应该先备份一下事务日志文件.

BACKUP LOG dbname TO DISK = 'c:\dbname.bak' WITH NO_TRUNCATE;--然后还原昨天晚上9点多的数据库备份

RESTORE DATABASE dbname FROM DISK = '备份的文件' WITH NORECOVERY,REPLACE;--还原刚刚备份的事务日志,并在10点钟停止

RESTORE LOG dbname FROM DISK = 'c:\dbname.bak' WITH STOPAT = '2009-06-20 10:00:00',RECOVERY;

posted on 2009-06-24 08:30  阿栋.c#  阅读(198)  评论(0)    收藏  举报