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

推荐订阅源

G
GRAHAM CLULEY
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
Last Week in AI
Last Week in AI
P
Privacy & Cybersecurity Law Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
博客园 - Franky
Spread Privacy
Spread Privacy
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Project Zero
Project Zero
Engineering at Meta
Engineering at Meta
The Hacker News
The Hacker News
Stack Overflow Blog
Stack Overflow Blog
N
Netflix TechBlog - Medium
A
Arctic Wolf
Cisco Talos Blog
Cisco Talos Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Application and Cybersecurity Blog
Application and Cybersecurity Blog
T
Threat Research - Cisco Blogs
Recorded Future
Recorded Future
Latest news
Latest news
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
C
CERT Recently Published Vulnerability Notes
美团技术团队
C
CXSECURITY Database RSS Feed - CXSecurity.com
O
OpenAI News
N
News and Events Feed by Topic
MyScale Blog
MyScale Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
B
Blog RSS Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Threatpost
T
The Blog of Author Tim Ferriss
L
LINUX DO - 最新话题
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 【当耐特】
S
Securelist
Microsoft Azure Blog
Microsoft Azure Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Secure Thoughts
罗磊的独立博客
P
Proofpoint News Feed
T
The Exploit Database - CXSecurity.com
Apple Machine Learning Research
Apple Machine Learning Research
Cloudbric
Cloudbric
G
Google Developers Blog

博客园 - 名刘天下

转载:[UML]Free UML Tools 转载:HTTP协议漫谈 面向对象分析与设计资料收集 Fiddler本机调试的方法 【推荐】可以搜索下载国外pdf,word和ppt资料的好地方 关于管理科学与工程 序列化类型为“****”的对象时检测到循环引用。 发现一个好的网站! “关于挨踢(通“IT”)的事儿” 链接远程数据库时,提示“”provider: SQL 网络接口, error: 26 - 定位指定的服务器/实例时出错“解决方案! 什么是效用计算? 关于云计算 Gartner发布2010四大趋势 【转载】白话面向智能体编程 服务计算 什么是元数据? 关于科研的几篇文章不错,记录一下? [转自网络]《十年只为一个摧残的梦》 JSON资料收集
实现SqlServer2005数据库的定时备份
名刘天下 · 2011-09-15 · via 博客园 - 名刘天下

2011-09-15 22:56  名刘天下  阅读(324)  评论()    收藏  举报

项目的数据库现在已经录入了大量的数据,数据库的备份自然是一项重要的工作。利用Sqlserver2005提供的作业功能即可是实现。如下图所示:

在新建作业界面:

1、常规选项卡里,"名称"填写"定时备份数据库""启用"前面选"对勾""以本地服务器为目标" "分类"选择"数据库服务"

2、步骤选项卡里,新建步骤,步骤名:备份数据库;类型:Transact-SQL脚本(TSQL);

 数据库:要备份的数据库;

 命令:

declare @filename varchar (1000)

set @filename='E:\数据库备份\book'+convert(char(10),getdate(),112)

print @filename

BACKUP DATABASE [book] TO DISK = @filename WITH NOINIT , NOUNLOAD , NAME = N'备份', NOSKIP , STATS = 10,

NOFORMAT

3、调度选项卡里,新建调度,名称:定时备份数据库调度类型:反复出现;

4、通知选项卡里,写入windows应用程序事件日至。当作业失败时。

参考:

1、http://www.cnblogs.com/zhouchaoyi/archive/2011/06/26/2090961.html

2、http://blog.csdn.net/mengan123/article/details/6731457

3、http://blog.csdn.net/yyj135/article/details/1744917

4、http://www.cnblogs.com/guodapeng/archive/2008/05/22/1204982.html