RetainDays Property
The RetainDays property specifies the number of days that must elapse before a backup set can be overwritten.
Applies To
Backup Object |
Syntax
object.RetainDays [= value]
Parts
object
Expression that evaluates to an object in the Applies To list
value
Long integer that specifies a number of days
Data Type
Long
Modifiable
Read/write
Prototype (C/C++)
HRESULT GetRetainDays(LPLONG pRetVal);
HRESULT SetRetainDays(long NewValue);
Remarks
For Microsoft® SQL Server™ 2000, backup set retention period is set when media is initialized. When using SQL-DMO to automate SQL Server backup, the RetainDays property is only evaluated when the Initialize property is TRUE.