有关TSQL DelBkUps参数的信息

我们每天晚上都使用TSQL脚本来备份数据库,并在此脚本中使用-DBBKUPS 1DAYS来删除备份的旧磁盘副本。 但是现在我们的磁盘空间已经不足了,我想将其更改为类似于-DelBkUps 0.5DAYS

这里的文档http://msdn.microsoft.com/en-us/library/ms162827.aspx说,我应该使用time_span,但没有给我什么是在这个领域可以接受的例子。

有人能帮我find可接受的文档,或者给我一个例子,说明如何将time_span设置为几个小时而不是几天?

其格式列在引用的网页的语法部分的底部。

<time_period> ::= number[minutes | hours | days | weeks | months] 

这里是样品。

 number[minutes| hours| day| weeks| months] Specifies the time interval used to determine if a report or backup file is old enough to be deleted. number is an integer followed (without a space) by a unit of time. Valid examples: 12weeks 3months 15days If only number is specified, the default date part is weeks.