The RetainDays property specifies the number of days that must elapse before a backup set can be overwritten.
object.RetainDays [= value]
object
Expression that evaluates to an object in the Applies To list
value
Long integer that specifies a number of days
Long
Read/write
HRESULT GetRetainDays(LPLONG pRetVal);
HRESULT SetRetainDays(long NewValue);
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.