- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
backupdatabase(backupdatabase)
backupdatabase(backupdatabase)
2005 database backup 2010-03-06 13:10 - complete backup
Backup the Database NorthwindCS
G: \ Backup To disk = \ NorthwindCS_Fullbak
- differential backup
Backup the Database NorthwindCS
G: \ Backup To disk = \ NorthwindCS_Diffbak
With Differential
- log backup, default truncation log
Backup the Log NorthwindCS
G: \ Backup To disk = \ NorthwindCS_Logbak
Log backups, not truncation logs
Backup the Log NorthwindCS
G: \ Backup To disk = \ NorthwindCS_Logbak
With No_Truncate
-- truncation log is not retained
Backup the Log NorthwindCS
With No_Log
- or
Backup the Log NorthwindCS
With Truncate_Only
-- the log file will not shrink after truncation
It is necessary to contract
-- file backup
Exec Sp_Helpdb NorthwindCS - view the data file
Backup the Database NorthwindCS
File = NorthwindCS - the logical name of the data File
G: \ Backup To disk = \ NorthwindCS_Filebak
-- file group backups
Exec Sp_Helpdb NorthwindCS - view the data file
Backup the Database NorthwindCS
FileGroup = Primary - the logical name of the data file
G: \ Backup To disk = \ NorthwindCS_FileGroupbak
With the init
- split up backup to multiple targets
-- no target is allowed to be lost
Backup the Database NorthwindCS
G: \ Backup To disk = \ NorthwindCS_Full_1 bak
G: \ Backup, disk = \ NorthwindCS_Full_2 bak
-- mirror backup
-- each goal is the same
Backup the Database NorthwindCS
G: \ Backup To disk = \ NorthwindCS_Mirror_1 bak
Mirror
G: \ Backup To disk = \ NorthwindCS_Mirror_2 bak
With Format -- the first time you did a mirroring backup, Format the target
Mirror backup to local and remote
Backup the Database NorthwindCS
G: \ Backup To disk = \ NorthwindCS_Mirror_1 bak
Mirror
Stored To disk = \ \ 192.168.1.200 \ \ NorthwindCS_Mirror_2 bak
With the Format
Generate a backup file every day
Declare @ Path Nvarchar (2000).
G: \ Backup Set @ Path = \ NorthwindCS_Full_
+ the Convert (Nvarchar, Getdate (), 112) + bak
Backup
您可能关注的文档
- 物理机械能(Physical mechanical energy).doc
- 物理理论上的一个认识错误(A cognitive error in physics theory).doc
- 物理概念质(Physical concept).doc
- 物理磁场典型例题解析(Physics typical examples of magnetic fields are analyzed).doc
- 物联网人才争夺激烈 高校盲目申办相关专业(Internet of things talents for the fierce universities blindly bidding related majors).doc
- 物理科组工作计划(Physical division work plan).doc
- 物理结论1(Physical conclusion 1).doc
- 物质形态(Physical form).doc
- 物质科学期末复习题(Material science final review).doc
- 物理极值问题(Physical extremum problem).doc
- bandaotiyingyu(bandaotiyingyu).doc
- BASH命令详解(The BASH command is detailed).doc
- bbox的基本音教学(Bbox basic sound teaching).doc
- BGP的路由聚合(The routing aggregation of BGP).doc
- Being There(在那里).doc
- BME学生课程同步阅读推荐英文书目(BME students' course reading recommended English bibliography).doc
- beyond经典语录(Beyond the classical quotations).doc
- BUZ系列(BUZ series).doc
- Bus Hound 5.0 使用说明书(Bus Hound 5.0 USES instructions).doc
- button控件(A button control).doc
文档评论(0)