如何在sql server 2008 express中每隔一小时写回一个备份文件的脚本?

问题描述:

如何在sql server 2008 express中每隔一小时写回一个备份文件的脚本?请写一些脚本,请给我..............举个例子

how to write a script for back file that take back up for every one hour in sql server 2008 express? write some script and give me please ..............give some example

这里有两件事要介绍:

1.备份数据库的脚本

2.安排脚本在定义的时间间隔内运行



一次你知道两者,结合并获得所需的细节。

很少有参考资料:

在SQL Server 2008R2 Express中安排数据库备份 [ ^ ]

备份所有SQL Server数据库的简单脚本 [ ^ ]



试用。如果您遇到任何问题,请发布具体问题。
You have two things to cover here:
1. Script to back up the database
2. Schedule the script to run on defined interval

Once you know both, combine and you get the needed details.
Few references:
Scheduling database backups in SQL Server 2008R2 Express[^]
Simple script to backup all SQL Server databases[^]

Try out. Post specific issue if you face any.