Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EXPIREDATE (on the backup command)

Status
Not open for further replies.

HobbyMan

Programmer
Sep 22, 2000
25
0
0
US
I have my backup setup as follows:

DECLARE @theDate DATETIME
SET @theDate=GETDATE()+7

BACKUP DATABASE CustomerSupport TO CustomerSupport WITH EXPIREDATE=@theDate

I thought I understood the EXPIREDATE parameter.

Could someone tell me what is supposed to happen when the expiredate is reached?
How can I use the expiredate?

Lance
 
When the expiredate is reached it means the backup set can now be overwritten.

If you try to do prior to the expiredate then SQL Server will fail you backup command.

Basically it's a way of protecting your backups so someone doesn't trash over them until it is safe to do so.

Rick.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top