﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-My BI Career-随笔分类-Sql Server2005</title><link>http://www.cnitblog.com/nicepp/category/5059.html</link><description /><language>zh-cn</language><lastBuildDate>Thu, 13 Oct 2011 09:08:13 GMT</lastBuildDate><pubDate>Thu, 13 Oct 2011 09:08:13 GMT</pubDate><ttl>60</ttl><item><title>在sql server 中如何备份和恢复单个表?</title><link>http://www.cnitblog.com/nicepp/archive/2007/04/04/25144.html</link><dc:creator>Nicepp</dc:creator><author>Nicepp</author><pubDate>Wed, 04 Apr 2007 06:46:00 GMT</pubDate><guid>http://www.cnitblog.com/nicepp/archive/2007/04/04/25144.html</guid><wfw:comment>http://www.cnitblog.com/nicepp/comments/25144.html</wfw:comment><comments>http://www.cnitblog.com/nicepp/archive/2007/04/04/25144.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/nicepp/comments/commentRss/25144.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/nicepp/services/trackbacks/25144.html</trackback:ping><description><![CDATA[<p>如果只想备份或恢复单个表而不想备份或恢复整个数据库的话,往往有以下方法:</p>
<p>1.在Sql server2000 中可以使用DTS来将该表的数据导出成另外的文件格式.当需要恢复时,可以将该文件中数据再通过DTS导入;或者建立DTS脚本来完成</p>
<p>2.使用命令bcp:<br>导出到filename文件中:<br>Master..xp_CmdShell 'bcp 库名..表名 out D:\filename-c -Sservername -Usa -Ppassword'<br>---导入:<br>Master..xp_cmdShell 'bcp 库名..表名 in D:\filename -c -Sservername -Usa -Ppassword'<br></p>
<img src ="http://www.cnitblog.com/nicepp/aggbug/25144.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/nicepp/" target="_blank">Nicepp</a> 2007-04-04 14:46 <a href="http://www.cnitblog.com/nicepp/archive/2007/04/04/25144.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>