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

推荐订阅源

博客园 - 【当耐特】
Help Net Security
Help Net Security
P
Proofpoint News Feed
J
Java Code Geeks
爱范儿
爱范儿
Last Week in AI
Last Week in AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
F
Full Disclosure
Google DeepMind News
Google DeepMind News
H
Help Net Security
G
Google Developers Blog
Jina AI
Jina AI
Vercel News
Vercel News
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
L
Lohrmann on Cybersecurity
S
Schneier on Security
Microsoft Azure Blog
Microsoft Azure Blog
IT之家
IT之家
Security Archives - TechRepublic
Security Archives - TechRepublic
阮一峰的网络日志
阮一峰的网络日志
N
News and Events Feed by Topic
GbyAI
GbyAI
B
Blog
O
OpenAI News
博客园_首页
Cisco Talos Blog
Cisco Talos Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Hacker News: Ask HN
Hacker News: Ask HN
TaoSecurity Blog
TaoSecurity Blog
腾讯CDC
MongoDB | Blog
MongoDB | Blog
M
MIT News - Artificial intelligence
C
Cybersecurity and Infrastructure Security Agency CISA
Cyberwarzone
Cyberwarzone
Webroot Blog
Webroot Blog
Simon Willison's Weblog
Simon Willison's Weblog
Y
Y Combinator Blog
C
Cisco Blogs
A
Arctic Wolf
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
The Exploit Database - CXSecurity.com
Security Latest
Security Latest
AI
AI
W
WeLiveSecurity
aimingoo的专栏
aimingoo的专栏
The Register - Security
The Register - Security
Project Zero
Project Zero
H
Hackread – Cybersecurity News, Data Breaches, AI and More
N
Netflix TechBlog - Medium
Blog — PlanetScale
Blog — PlanetScale

博客园 - 灰色

OSGi中使用Servlet遇到Permission denied的问题 ubuntu上安装netbeans提示找不到jdk的解决办法 Ubuntu的eclipse+CDT开发遇到的问题 - 灰色 - 博客园 备忘:昨天被人问到的3个Linux命令,我只会一个,惭愧啊 vmware中Ubuntu同宿主机Windows之间的共享问题 Oracle创建数据库时提示out of memory错误解决办法 vmware中鼠标乱跑问题的解决 TB级数据检索引擎开发笔记(一) Windows Service中调用Winform程序之log4net问题. 常用SQL语句 要到新公司了 error LNK2001: unresolved external symbol _main解决办法(zz) Ubuntu下使用IronPython不支持os标准库的解决方法 改进的dtree,支持无刷新添加和删除节点 我们公司正在实行的Scrum,效果还不错 一分钟搞定清晰的网站图标(ico) SQL SERVER 孤立用户问题 - 灰色 利用DevExpress控件包中的GridControl做Master-Detail样式时,Detail表无法定位行的解决办法 Winform中Licenses.licx 总是签出导致影响多人开发的解决方法
如何将数据库恢复到不同名称的新库下
灰色 · 2008-12-10 · via 博客园 - 灰色

这是我们在维护数据库过程中遇到的一个老问题,数据库某些表的字段发生了问题,需要将备份数据库里的数据更新回去,这就产生了如何讲数据库恢复到不同名的数据库的问题,废话少说,代码如下:

Code

其中disk后面的是备份文件的路径,kk是新的数据库名,MOVE后面的是原来数据库的数据文件和日志文件名,TO后面的是新的数据库文件的位置

我还参考了MSDN上的这篇文章:http://msdn.microsoft.com/zh-cn/library/ms190447.aspx